public abstract class SPSSFactory extends Object
getInstance()
to get a concrete factory instance. Using
this instance, concrete MOA SP/SS API object can be created.Constructor and Description |
---|
SPSSFactory() |
Modifier and Type | Method and Description |
---|---|
abstract Transform |
createBase64Transform()
Create a
Base64Transform type of Transform . |
abstract Transform |
createCanonicalizationTransform(String algorithmURI)
Create a
CanonicalizationTransform type of Transform . |
abstract CheckResult |
createCheckResult(int code,
NodeList info)
Create a new
CheckResult object. |
abstract CMSContent |
createCMSContent(InputStream binaryContent)
Create a new
CMSContent object from a byte stream. |
abstract CMSContent |
createCMSContent(String referenceURI)
Create a new
CMSContent object from the data contained at the
given URI. |
abstract CMSDataObject |
createCMSDataObject(MetaInfo metaInfo,
CMSContent content,
BigDecimal excludeByteRangeFrom,
BigDecimal excludeByteRangeTo)
Create a new
CMSDataObject object from data at a given URI. |
abstract CMSSignatureResponse |
createCMSSignatureResponse(String base64value)
Create a new
SignatureEnvironmentResponse object. |
abstract Content |
createContent(InputStream binaryData,
String referenceURI)
Create a new
Content object containing binary data. |
abstract Content |
createContent(NodeList xmlData,
String referenceURI)
Create a new
Content object containing XML data. |
abstract Content |
createContent(String referenceURI)
Create a new
Content object referencing data via a URI. |
abstract Content |
createContent(String locationReferenceURI,
String referenceURI)
Create a new
Content object containing location reference data. |
abstract CreateCMSSignatureRequest |
createCreateCMSSignatureRequest(String keyIdentifier,
List singleSignatureInfos)
Create a new
CreateCMSSignatureRequest object. |
abstract CreateCMSSignatureResponse |
createCreateCMSSignatureResponse(List responseElements)
Create a new
CreateCMSSignatureResponse object. |
abstract CreateSignatureEnvironmentProfile |
createCreateSignatureEnvironmentProfile(CreateSignatureLocation createSignatureLocation,
List supplements)
Create a new
CreateSignatureEnvironmentProfile object by
providing the profile data explicitly. |
abstract CreateSignatureEnvironmentProfile |
createCreateSignatureEnvironmentProfile(String profileID)
Create a new
CreateSignatureEnvironmentProfile object
containing a reference to a locally stored profile. |
abstract CreateSignatureInfo |
createCreateSignatureInfo(Content createSignatureEnvironment,
CreateSignatureEnvironmentProfile createSignatureEnvironmentProfile)
Create a new
CreateSignatureInfo object. |
abstract CreateSignatureLocation |
createCreateSignatureLocation(String xPathExpression,
int index,
Map namespaceDeclarations)
Create a new
CreateSignatureLocation object. |
abstract CreateTransformsInfo |
createCreateTransformsInfo(List transforms,
MetaInfo finalDataMetaInfo)
Create a new
CreateTransformsInfo object. |
abstract CreateTransformsInfoProfile |
createCreateTransformsInfoProfile(CreateTransformsInfo transformsInfo,
List supplements)
Create a new
CreateTransformsInfoProfile object by providing
the profile data explicitly. |
abstract CreateTransformsInfoProfile |
createCreateTransformsInfoProfile(String profileID)
Create a new
CreateTransformsInfoProfile object containing a
reference to a locally stored profile. |
abstract CreateXMLSignatureRequest |
createCreateXMLSignatureRequest(String keyIdentifier,
List singleSignatureInfos)
Create a new
CreateXMLSignatureRequest object. |
abstract CreateXMLSignatureResponse |
createCreateXMLSignatureResponse(List responseElements)
Create a new
CreateXMLSignatureResponse object. |
abstract DataObjectInfo |
createDataObjectInfo(String structure,
boolean childOfManifest,
Content dataObject,
CreateTransformsInfoProfile createTransformsInfoProfile)
Create a new
DataObjectInfo object. |
abstract DataObjectInfo |
createDataObjectInfo(String structure,
CMSDataObject dataObject)
Create a new
DataObjectInfo object. |
abstract Transform |
createEnvelopedSignatureTransform()
Create a
EnvelopedSignatureTransform type of
Transform . |
abstract ErrorResponse |
createErrorResponse(int code,
String info)
Create a new
ErrorResponse object. |
abstract Transform |
createExclusiveCanonicalizationTransform(String algorithmURI,
List inclusiveNamespacePrefixes)
Create an
ExclusiveCanonicalizationTransform type of
Transform . |
abstract ManifestRefsCheckResult |
createManifestRefsCheckResult(int code,
ManifestRefsCheckResultInfo info)
Create a new
ManifestRefsCheckResult object. |
abstract ManifestRefsCheckResultInfo |
createManifestRefsCheckResultInfo(NodeList anyOtherInfo,
int[] failedReferences,
int referringSigReference)
Create a new
ManifestRefsCheckResultInfo object. |
abstract MetaInfo |
createMetaInfo(String mimeType,
String description,
NodeList otherInfo,
String type)
Create a new
MetaInfo object. |
abstract ReferenceInfo |
createReferenceInfo(List verifyTransformsInfoProfiles)
Create a new
ReferenceInfo object. |
abstract ReferencesCheckResult |
createReferencesCheckResult(int code,
ReferencesCheckResultInfo info)
Create a new
ReferencesCheckResult object. |
abstract ReferencesCheckResultInfo |
createReferencesCheckResultInfo(NodeList anyOtherInfo,
int[] failedReferences)
Create a new
ReferencesCheckResultInfo object. |
abstract SignatureEnvironmentResponse |
createSignatureEnvironmentResponse(Element signatureEnvironment)
Create a new
SignatureEnvironmentResponse object. |
abstract SignatureManifestCheckParams |
createSignatureManifestCheckParams(List referenceInfos,
boolean returnReferenceInputData)
Create a new
SignatureManifestCheckParams object. |
abstract SignerInfo |
createSignerInfo(X509Certificate signerCertificate,
boolean qualifiedCertificate,
boolean qcSourceTSL,
boolean publicAuthority,
String publicAuthorityID,
boolean sscd,
boolean sscdSourceTSL,
String issuerCountryCode)
Create a new
SignerInfo object. |
abstract SingleSignatureInfo |
createSingleSignatureInfo(List dataObjectInfos,
CreateSignatureInfo createSignatureInfo,
boolean securityLayerConform)
Create a new
SingleSignatureInfo object. |
abstract SingleSignatureInfo |
createSingleSignatureInfoCMS(DataObjectInfo dataObjectInfo,
boolean securityLayerConform)
Create a new
SingleSignatureInfo object. |
abstract SupplementProfile |
createSupplementProfile(String profileID)
Create a new
SupplementProfile object containing a reference
to a locally stored profile. |
abstract SupplementProfile |
createSupplementProfile(XMLDataObjectAssociation supplementProfile)
Create a new
SupplementProfile object by providing the profile
data explicitly. |
abstract TransformParameter |
createTransformParameter(String URI)
Create a new
TransformParameter object with the data
contained at the given URI. |
abstract TransformParameter |
createTransformParameter(String URI,
InputStream binaryData)
Creata a new
TransformParameter object containing the
binary data. |
abstract TransformParameter |
createTransformParameter(String URI,
String digestMethod,
byte[] digestValue)
Create a new
TransformParameter object containing the hash
value of the transformation data. |
abstract VerifyCMSSignatureRequest |
createVerifyCMSSignatureRequest(int[] signatories,
Date dateTime,
InputStream cmsSignature,
CMSDataObject dataObject,
String trustProfileID)
Create a new
VerifyCMSSignatureRequest object. |
abstract VerifyCMSSignatureResponse |
createVerifyCMSSignatureResponse(List responseElements)
Create a new
VerifyCMSSignatureResponse object. |
abstract VerifyCMSSignatureResponseElement |
createVerifyCMSSignatureResponseElement(SignerInfo signerInfo,
CheckResult signatureCheck,
CheckResult certificateCheck)
Create a new
VerifyCMSSignatureResponseElement object. |
abstract VerifySignatureInfo |
createVerifySignatureInfo(Content verifySignatureEnvironment,
VerifySignatureLocation verifySignatureLocation)
Create a new
VerifySignatureInfo object. |
abstract VerifySignatureLocation |
createVerifySignatureLocation(String xPathExpression,
Map namespaceDeclarations)
Create a new
VerifySignatureLocation object. |
abstract VerifyTransformsInfoProfile |
createVerifyTransformsInfoProfile(List transforms,
List transformParameters)
Create a new
VerifyTransformsInfoProfile object by providing
the profile data explicitly. |
abstract VerifyTransformsInfoProfile |
createVerifyTransformsInfoProfile(String profileID)
Create a new
VerifyTransformsInfoProfile object containing
a reference to a locally stored profile. |
abstract VerifyXMLSignatureRequest |
createVerifyXMLSignatureRequest(Date dateTime,
VerifySignatureInfo verifySignatureInfo,
List supplementProfiles,
SignatureManifestCheckParams signatureManifestParams,
boolean returnHashInputData,
String trustProfileID)
Create a new
VerifyXMLSignatureRequest object. |
abstract VerifyXMLSignatureResponse |
createVerifyXMLSignatureResponse(SignerInfo signerInfo,
List hashInputDatas,
List referenceInputDatas,
ReferencesCheckResult signatureCheck,
ReferencesCheckResult signatureManifestCheck,
List xmlDsigManifestChecks,
CheckResult certificateCheck)
Create a new
VerifyXMLSignatureResponse object. |
abstract X509IssuerSerial |
createX509IssuerSerial(String issuerName,
BigInteger issuerSerial)
Create a new
X509IssuerSerial object. |
abstract XMLDataObjectAssociation |
createXMLDataObjectAssociation(MetaInfo metaInfo,
Content content)
Create a new
XMLDataObjectAssociation object. |
abstract XPathFilter |
createXPathFilter(String filterType,
String xPathExpression,
Map namespaceDeclarations)
Create a new
XPathFilter object. |
abstract Transform |
createXPathFilter2Transform(List xPathFilters)
Create a new
XPathFilter2Transform type of
Transform . |
abstract Transform |
createXPathTransform(String xPathExpression,
Map namespaceDeclarations)
Create an
XPathTransform type of Transform . |
abstract Transform |
createXSLTTransform(Element styleSheet)
Create an
XSLTTransform type of Transform . |
static SPSSFactory |
getInstance()
Returns the single instance of this class.
|
public static SPSSFactory getInstance()
public abstract CreateXMLSignatureRequest createCreateXMLSignatureRequest(String keyIdentifier, List singleSignatureInfos)
CreateXMLSignatureRequest
object.keyIdentifier
- The identifier for the key group to use for signing.singleSignatureInfos
- A List
of
SingleSignatureInfo
objects containing information about a
single signature to be created.CreateXMLSignatureRequest
containing the above
data.public abstract CreateCMSSignatureRequest createCreateCMSSignatureRequest(String keyIdentifier, List singleSignatureInfos)
CreateCMSSignatureRequest
object.keyIdentifier
- The identifier for the key group to use for signing.singleSignatureInfos
- A List
of
SingleSignatureInfo
objects containing information about a
single signature to be created.CreateCMSSignatureRequest
containing the above
data.public abstract SingleSignatureInfo createSingleSignatureInfo(List dataObjectInfos, CreateSignatureInfo createSignatureInfo, boolean securityLayerConform)
SingleSignatureInfo
object.dataObjectInfos
- The data objects that will be signed (including
transformations).createSignatureInfo
- Information about the signature environment. May
be null
.securityLayerConform
- If true
, a Security Layer conform
signature manifest is created, otherwise not.SingleSignatureInfo
containing the above data.public abstract SingleSignatureInfo createSingleSignatureInfoCMS(DataObjectInfo dataObjectInfo, boolean securityLayerConform)
SingleSignatureInfo
object.dataObjectInfo
- The data object that will be signed.securityLayerConform
- If true
, a Security Layer conform
signature manifest is created, otherwise not.SingleSignatureInfo
containing the above data.public abstract DataObjectInfo createDataObjectInfo(String structure, boolean childOfManifest, Content dataObject, CreateTransformsInfoProfile createTransformsInfoProfile)
DataObjectInfo
object.structure
- The type of signature to create.childOfManifest
- If true
, references will be returned
as children of an XMLDsig manifest. Otherwise, they will be returned as
children of the signature itself.dataObject
- The data object that will be signed.createTransformsInfoProfile
- Additional transformations to apply
to the data object.DataObjectInfo
containing the above data.public abstract DataObjectInfo createDataObjectInfo(String structure, CMSDataObject dataObject)
DataObjectInfo
object.structure
- The type of signature to create.dataObject
- The data object that will be signed.DataObjectInfo
containing the above data.public abstract CreateTransformsInfoProfile createCreateTransformsInfoProfile(String profileID)
CreateTransformsInfoProfile
object containing a
reference to a locally stored profile.profileID
- The profile ID to resolve during signature creation.CreateTransformsInfoProfile
containing the given
profile ID.public abstract CreateTransformsInfoProfile createCreateTransformsInfoProfile(CreateTransformsInfo transformsInfo, List supplements)
CreateTransformsInfoProfile
object by providing
the profile data explicitly.transformsInfo
- The transformations to apply to the associated
data object.supplements
- Supplemental information for the transformation. May be
null
.CreateTransformsInfoProfile
containing the above
data.public abstract CreateTransformsInfo createCreateTransformsInfo(List transforms, MetaInfo finalDataMetaInfo)
CreateTransformsInfo
object.transforms
- The Transform
s to apply to the associated
data object. May be null
.finalDataMetaInfo
- Information about the type of the transformed
data.CreateTransformsInfo
containing the above data.public abstract CreateSignatureInfo createCreateSignatureInfo(Content createSignatureEnvironment, CreateSignatureEnvironmentProfile createSignatureEnvironmentProfile)
CreateSignatureInfo
object.createSignatureEnvironment
- The signature environment that will
contain the signature.createSignatureEnvironmentProfile
- Additional information about
the signture environment.CreateSignatureInfo
containing the above data.public abstract CreateSignatureEnvironmentProfile createCreateSignatureEnvironmentProfile(String profileID)
CreateSignatureEnvironmentProfile
object
containing a reference to a locally stored profile.profileID
- The profile ID to resolve during signature creation.CreateSignatureEnvironmentProfile
containing
the given profile ID.public abstract CreateSignatureEnvironmentProfile createCreateSignatureEnvironmentProfile(CreateSignatureLocation createSignatureLocation, List supplements)
CreateSignatureEnvironmentProfile
object by
providing the profile data explicitly.createSignatureLocation
- The location where the signature will be
inserted.supplements
- Additional information about the signature environment.CreateSignatureEnvironmentProfile
containing the
above data.public abstract CreateSignatureLocation createCreateSignatureLocation(String xPathExpression, int index, Map namespaceDeclarations)
CreateSignatureLocation
object.xPathExpression
- The XPath expression to select the signature
parent element within the signature environment.index
- The index of the node, after which the signature will be
inserted.namespaceDeclarations
- The namespace prefix to URI mapping to apply
while evaluating the XPath expression.CreateSignatureLocation
containing the above data.public abstract CreateXMLSignatureResponse createCreateXMLSignatureResponse(List responseElements)
CreateXMLSignatureResponse
object.responseElements
- The elements of the response, either
SignatureEnvironmentResponse
objects, or
ErrorResponse
objects.CreateXMLSignatureResponse
containing the
above data.public abstract CreateCMSSignatureResponse createCreateCMSSignatureResponse(List responseElements)
CreateCMSSignatureResponse
object.responseElements
- The elements of the response, either
CMSSignatureResponse
objects, or
ErrorResponse
objects.CreateCMSSignatureResponse
containing the
above data.public abstract CMSSignatureResponse createCMSSignatureResponse(String base64value)
SignatureEnvironmentResponse
object.signatureEnvironment
- The signature environment containing the
signature.SignatureEnvironmentResponse
containing the
signatureEnvironment
.public abstract SignatureEnvironmentResponse createSignatureEnvironmentResponse(Element signatureEnvironment)
SignatureEnvironmentResponse
object.signatureEnvironment
- The signature environment containing the
signature.SignatureEnvironmentResponse
containing the
signatureEnvironment
.public abstract ErrorResponse createErrorResponse(int code, String info)
ErrorResponse
object.code
- The numerical error code.info
- Verbose error information.ErrorResponse
containing the above data.public abstract VerifyCMSSignatureRequest createVerifyCMSSignatureRequest(int[] signatories, Date dateTime, InputStream cmsSignature, CMSDataObject dataObject, String trustProfileID)
VerifyCMSSignatureRequest
object.signatories
- The indexes of the signatories whose signature is to
be verified.dateTime
- The date for which the verification is to be performed.
May be null
.cmsSignature
- The CMS signature.dataObject
- The signed data. May be null
.trustProfileID
- The ID of the trust profile containing the trusted
root certificates.VerifyCMSSignatureRequest
containing the above
data.public abstract CMSDataObject createCMSDataObject(MetaInfo metaInfo, CMSContent content, BigDecimal excludeByteRangeFrom, BigDecimal excludeByteRangeTo)
CMSDataObject
object from data at a given URI.metaInfo
- Type information about the CMSDataObject
.
May be null
.content
- The CMS content containing the data.CMSDataObject
containing the data.public abstract CMSContent createCMSContent(String referenceURI)
CMSContent
object from the data contained at the
given URI.referenceURI
- The URI identifying the data. Must be resolvable.CMSContent
containing a reference to the signed
data.public abstract CMSContent createCMSContent(InputStream binaryContent)
CMSContent
object from a byte stream.binaryContent
- The byte stream containing the signed data.CMSContent
containing the data from the
byte stream.public abstract VerifyCMSSignatureResponse createVerifyCMSSignatureResponse(List responseElements)
VerifyCMSSignatureResponse
object.responseElements
- Verification information about each signature.VerifyCMSSignatureResponse
containing the
status of signature verification for each signature contained in the
request.public abstract VerifyCMSSignatureResponseElement createVerifyCMSSignatureResponseElement(SignerInfo signerInfo, CheckResult signatureCheck, CheckResult certificateCheck)
VerifyCMSSignatureResponseElement
object.signerInfo
- Information about the signer certificate.signatureCheck
- Result of the singature value check.certificateCheck
- Result of the certificate status check.VerifyCMSSignatureResponseElement
containing
the above data.public abstract VerifyXMLSignatureRequest createVerifyXMLSignatureRequest(Date dateTime, VerifySignatureInfo verifySignatureInfo, List supplementProfiles, SignatureManifestCheckParams signatureManifestParams, boolean returnHashInputData, String trustProfileID)
VerifyXMLSignatureRequest
object.dateTime
- The date for which the verification is to be performed.
May be null
.verifySignatureInfo
- Information about the signature environment and
the location of the signature.supplementProfiles
- Supplemental information for the signature
environment. May be null
.signatureManifestParams
- Additional information for checking the
signature manifest. May be null
.returnHashInputData
- If true
, hash input data will
be returned in the response, otherwise not.trustProfileID
- The ID of the trust profile containing the trusted
root certificates.VerifyXMLSignatureRequest
containing the
above data.public abstract VerifySignatureInfo createVerifySignatureInfo(Content verifySignatureEnvironment, VerifySignatureLocation verifySignatureLocation)
VerifySignatureInfo
object.verifySignatureEnvironment
- The signature environment containing
the signature to be verified.verifySignatureLocation
- The location of the signature within the
signature environment.VerifySignatureInfo
containing the above data.public abstract VerifySignatureLocation createVerifySignatureLocation(String xPathExpression, Map namespaceDeclarations)
VerifySignatureLocation
object.xPathExpression
- The XPath expression to select the signature
element within the signature environment.namespaceDeclarations
- The namespace prefix to URI mapping to apply
while evaluating the XPath expression.VerifySignatureLocation
containing the above
data.public abstract SupplementProfile createSupplementProfile(String profileID)
SupplementProfile
object containing a reference
to a locally stored profile.profileID
- The profile ID to resolve during signature verification.SupplementProfile
containing the profile ID.public abstract SupplementProfile createSupplementProfile(XMLDataObjectAssociation supplementProfile)
SupplementProfile
object by providing the profile
data explicitly.supplementProfile
- The profile data.SupplementProfile
containing the profile data.public abstract SignatureManifestCheckParams createSignatureManifestCheckParams(List referenceInfos, boolean returnReferenceInputData)
SignatureManifestCheckParams
object.referenceInfos
- Information for checking the validity of a
a reference.returnReferenceInputData
- If true
, the input data to
the calculation of reference digest values will be returned in the
response, otherwise not.SignatureManifestCheckParams
containing the
above data.public abstract ReferenceInfo createReferenceInfo(List verifyTransformsInfoProfiles)
ReferenceInfo
object.verifyTransformsInfoProfiles
- The transformation profiles valid for
the associated reference.ReferenceInfo
containing the transformation
profiles.public abstract VerifyTransformsInfoProfile createVerifyTransformsInfoProfile(String profileID)
VerifyTransformsInfoProfile
object containing
a reference to a locally stored profile.profileID
- The profile ID to resolve during signature verification.VerifyTransformsInfoProfile
containing the
given profile ID.public abstract VerifyTransformsInfoProfile createVerifyTransformsInfoProfile(List transforms, List transformParameters)
VerifyTransformsInfoProfile
object by providing
the profile data explicitly.transforms
- A valid chain of transformations for the reference.
May be null
.transformParameters
- Additional transformation information.VerifyTransformsInfoProfile
containing the above
data.public abstract TransformParameter createTransformParameter(String URI)
TransformParameter
object with the data
contained at the given URI.URI
- The URI identifying the data. The URI will be resolved during
signature verification.TransformParameter
containing the URI of the
data.public abstract TransformParameter createTransformParameter(String URI, InputStream binaryData)
TransformParameter
object containing the
binary data.URI
- The URI identifying the data.binaryData
- The binary data.TransformParameter
containig the binary data.public abstract TransformParameter createTransformParameter(String URI, String digestMethod, byte[] digestValue)
TransformParameter
object containing the hash
value of the transformation data.URI
- The URI identifying the data. It will be resolved during
signature verification.digestMethod
- The digest method used for calculating the digest
value.digestValue
- The hash value of the transformation data.TransformParameter
containing the above data.public abstract VerifyXMLSignatureResponse createVerifyXMLSignatureResponse(SignerInfo signerInfo, List hashInputDatas, List referenceInputDatas, ReferencesCheckResult signatureCheck, ReferencesCheckResult signatureManifestCheck, List xmlDsigManifestChecks, CheckResult certificateCheck)
VerifyXMLSignatureResponse
object.signerInfo
- Information about the signer certificate.hashInputDatas
- The signed data objects. May be null
.referenceInputDatas
- The reference input data objects.
May be null
.signatureCheck
- Status information about the signature check.signatureManifestCheck
- Status information about the signature
manifest check.xmlDsigManifestChecks
- Status information about each XMLDsig manifest
check.certificateCheck
- Status information about the signer certificate
check.VerifyXMLSignatureResponse
containing the above
data.public abstract ReferencesCheckResult createReferencesCheckResult(int code, ReferencesCheckResultInfo info)
ReferencesCheckResult
object.code
- The status code.info
- Additional information about the reference check.ReferencesCheckResult
containing the above data.public abstract ReferencesCheckResultInfo createReferencesCheckResultInfo(NodeList anyOtherInfo, int[] failedReferences)
ReferencesCheckResultInfo
object.anyOtherInfo
- Arbitrary XML content describing the check result.
May be null
.failedReferences
- The indexes of the failed references. May be
null
.ReferencesCheckResultInfo
containing the above
data.public abstract ManifestRefsCheckResult createManifestRefsCheckResult(int code, ManifestRefsCheckResultInfo info)
ManifestRefsCheckResult
object.code
- The status code.info
- Additional information about the manifest check. May be
null
.ManifestRefsCheckResult
containing the above
data.public abstract ManifestRefsCheckResultInfo createManifestRefsCheckResultInfo(NodeList anyOtherInfo, int[] failedReferences, int referringSigReference)
ManifestRefsCheckResultInfo
object.anyOtherInfo
- Arbitrary XML content describing the check result.
May be null
.failedReferences
- The indexes of the failed references. May be
null
.referringSigReference
- The index of the reference in the signature.ManifestRefsCheckResultInfo
containing the
above data.public abstract Content createContent(String referenceURI)
Content
object referencing data via a URI.referenceURI
- The URI pointing to the content.Content
object containing the reference.public abstract Content createContent(InputStream binaryData, String referenceURI)
Content
object containing binary data.binaryData
- An InputStream
containing the binary data.referenceURI
- An URI identifying the data. May be null
.Content
object containing the data.public abstract Content createContent(String locationReferenceURI, String referenceURI)
Content
object containing location reference data.locationReferenceURI
- a URI pointing to the actual remote location of the content.referenceURI
- An URI identifying the data. May be null
.Content
object containing the data.public abstract Content createContent(NodeList xmlData, String referenceURI)
Content
object containing XML data.xmlData
- The XML data contained in the new Content
.referenceURI
- An URI identifying the data. May be null
.Content
object containing the data.public abstract XMLDataObjectAssociation createXMLDataObjectAssociation(MetaInfo metaInfo, Content content)
XMLDataObjectAssociation
object.metaInfo
- Information about the content type. May be
null
.content
- The Content
object containing the data.XMLDataObjectAssociation
containing the above
data.public abstract MetaInfo createMetaInfo(String mimeType, String description, NodeList otherInfo, String type)
MetaInfo
object.mimeType
- The MIME type part of the meta information.description
- Descriptive meta information. May be null
.otherInfo
- XML meta information. May be null
.type
- Type information for XML signature creation. May be null
.MetaInfo
object containing the above data.public abstract Transform createCanonicalizationTransform(String algorithmURI)
CanonicalizationTransform
type of Transform
.algorithmURI
- The algorithm URI of the canonicalization.CanonicalizationTransform
object.public abstract Transform createExclusiveCanonicalizationTransform(String algorithmURI, List inclusiveNamespacePrefixes)
ExclusiveCanonicalizationTransform
type of
Transform
.algorithmURI
- The algorithm URI of the exclusive canonicalization.inclusiveNamespacePrefixes
- The prefixes of the namespaces to
treat according to canonical XML.ExclusiveCanonicalizationTransform
public abstract Transform createBase64Transform()
Base64Transform
type of Transform
.Transform
denoting a Base64 decoding.public abstract Transform createEnvelopedSignatureTransform()
EnvelopedSignatureTransform
type of
Transform
.Transform
denoting an enveloped signature.public abstract Transform createXSLTTransform(Element styleSheet)
XSLTTransform
type of Transform
.styleSheet
- The XSLT stylesheet contained in the
Transform
.Transform
containing the XSLT stylesheet.public abstract Transform createXPathTransform(String xPathExpression, Map namespaceDeclarations)
XPathTransform
type of Transform
.xPathExpression
- The XPath expression to use in the created
Transform
.namespaceDeclarations
- The namespace prefix to URI mapping to
apply on evaluation of the XPath expression.XPathTransform
containing the above data.public abstract Transform createXPathFilter2Transform(List xPathFilters)
XPathFilter2Transform
type of
Transform
.xPathFilters
- The filters contained in the newly created
XPathFilter2Transform
.XPathFilter2Transform
containing the given
filters.public abstract XPathFilter createXPathFilter(String filterType, String xPathExpression, Map namespaceDeclarations)
XPathFilter
object.filterType
- The type of filter.xPathExpression
- The XPath expression contained in this filter.namespaceDeclarations
- The namespace prefix to URI mapping to apply
on evaluation of the XPath expression.XPathFilter
containing the above data.public abstract CheckResult createCheckResult(int code, NodeList info)
CheckResult
object.code
- The check code.info
- Verbose information about the check. May be null
.CheckResult
containing the above data.public abstract SignerInfo createSignerInfo(X509Certificate signerCertificate, boolean qualifiedCertificate, boolean qcSourceTSL, boolean publicAuthority, String publicAuthorityID, boolean sscd, boolean sscdSourceTSL, String issuerCountryCode)
SignerInfo
object.signerCertificate
- The signer certificate in binary form.qualifiedCertificate
- true
, if the signer certificate is
a qualified certificate, otherwise false
.qcSourceTSL
- true
, if the QC information comes from the TSL,
otherwise false
.publicAuthority
- true
, if the signer certificate is a
public authority certificate, otherwise false
.publicAuthorityID
- The identification of the public authority
(if publicAuthority
is true
). May be
null
.sscd
- true
, if the TSL check verifies the
signature based on a SSDC, otherwise false
.sscdSourceTSL
- true
, if the SSCD information comes from the TSL,
otherwise false
.issuerCountryCode
- contains the signer certificate issuer country code.SignerInfo
containing the above data.public abstract X509IssuerSerial createX509IssuerSerial(String issuerName, BigInteger issuerSerial)
X509IssuerSerial
object.issuerName
- The distinguished name of the issuer.issuerSerial
- The certificate serial number.X509IssuerSerial
containing the above data.Copyright © 2016. All rights reserved.