public class SPSSFactoryImpl extends SPSSFactory
SPSSFactory
.Constructor and Description |
---|
SPSSFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
Transform |
createBase64Transform()
Create a
Base64Transform type of Transform . |
Transform |
createCanonicalizationTransform(String algorithmURI)
Create a
CanonicalizationTransform type of Transform . |
CheckResult |
createCheckResult(int code,
NodeList info)
Create a new
CheckResult object. |
CMSContent |
createCMSContent(InputStream binaryContent)
Create a new
CMSContent object from a byte stream. |
CMSContent |
createCMSContent(String referenceURI)
Create a new
CMSContent object from the data contained at the
given URI. |
CMSDataObject |
createCMSDataObject(MetaInfo metaInfo,
CMSContent content,
BigDecimal excludeByteRangeFrom,
BigDecimal excludeByteRangeTo)
Create a new
CMSDataObject object from data at a given URI. |
CMSDataObject |
createCMSDataObject(MetaInfo metaInfo,
String referenceURI) |
CMSSignatureResponse |
createCMSSignatureResponse(String base64value)
Create a new
SignatureEnvironmentResponse object. |
Content |
createContent(InputStream binaryData,
String referenceURI)
Create a new
Content object containing binary data. |
Content |
createContent(NodeList xmlData,
String referenceURI)
Create a new
Content object containing XML data. |
Content |
createContent(String referenceURI)
Create a new
Content object referencing data via a URI. |
Content |
createContent(String locationReferenceURI,
String referenceURI)
Create a new
Content object containing location reference data. |
CreateCMSSignatureRequest |
createCreateCMSSignatureRequest(String keyIdentifier,
List singleSignatureInfos)
Create a new
CreateCMSSignatureRequest object. |
CreateCMSSignatureResponse |
createCreateCMSSignatureResponse(List responseElements)
Create a new
CreateCMSSignatureResponse object. |
CreateSignatureEnvironmentProfile |
createCreateSignatureEnvironmentProfile(CreateSignatureLocation createSignatureLocation,
List supplements)
Create a new
CreateSignatureEnvironmentProfile object by
providing the profile data explicitly. |
CreateSignatureEnvironmentProfile |
createCreateSignatureEnvironmentProfile(String profileID)
Create a new
CreateSignatureEnvironmentProfile object
containing a reference to a locally stored profile. |
CreateSignatureInfo |
createCreateSignatureInfo(Content createSignatureEnvironment,
CreateSignatureEnvironmentProfile createSignatureEnvironmentProfile)
Create a new
CreateSignatureInfo object. |
CreateSignatureLocation |
createCreateSignatureLocation(String signatureLocationXPath,
int signatureLocationIndex,
Map namespaceDeclarations)
Create a new
CreateSignatureLocation object. |
CreateTransformsInfo |
createCreateTransformsInfo(List transforms,
MetaInfo finalDataMetaInfo)
Create a new
CreateTransformsInfo object. |
CreateTransformsInfoProfile |
createCreateTransformsInfoProfile(CreateTransformsInfo transformsInfo,
List supplements)
Create a new
CreateTransformsInfoProfile object by providing
the profile data explicitly. |
CreateTransformsInfoProfile |
createCreateTransformsInfoProfile(String profileID)
Create a new
CreateTransformsInfoProfile object containing a
reference to a locally stored profile. |
CreateXMLSignatureRequest |
createCreateXMLSignatureRequest(String keyIdentifier,
List singleSignatureInfos)
Create a new
CreateXMLSignatureRequest object. |
CreateXMLSignatureResponse |
createCreateXMLSignatureResponse(List responseElements)
Create a new
CreateXMLSignatureResponse object. |
DataObjectInfo |
createDataObjectInfo(String structure,
boolean childOfManifest,
Content dataObject,
CreateTransformsInfoProfile createTransformsInfoProfile)
Create a new
DataObjectInfo object. |
DataObjectInfo |
createDataObjectInfo(String structure,
CMSDataObject dataObject)
Create a new
DataObjectInfo object. |
Transform |
createEnvelopedSignatureTransform()
Create a
EnvelopedSignatureTransform type of
Transform . |
ErrorResponse |
createErrorResponse(int code,
String info)
Create a new
ErrorResponse object. |
Transform |
createExclusiveCanonicalizationTransform(String algorithmURI,
List inclusiveNamespacePrefixes)
Create an
ExclusiveCanonicalizationTransform type of
Transform . |
ManifestRefsCheckResult |
createManifestRefsCheckResult(int code,
ManifestRefsCheckResultInfo info)
Create a new
ManifestRefsCheckResult object. |
ManifestRefsCheckResultInfo |
createManifestRefsCheckResultInfo(NodeList anyOtherInfo,
int[] failedReferences,
int referringSigReference)
Create a new
ManifestRefsCheckResultInfo object. |
MetaInfo |
createMetaInfo(String mimeType,
String description,
NodeList otherInfo,
String type)
Create a new
MetaInfo object. |
ReferenceInfo |
createReferenceInfo(List verifyTransformsInfoProfiles)
Create a new
ReferenceInfo object. |
ReferencesCheckResult |
createReferencesCheckResult(int code,
ReferencesCheckResultInfo info)
Create a new
ReferencesCheckResult object. |
ReferencesCheckResultInfo |
createReferencesCheckResultInfo(NodeList anyOtherInfo,
int[] failedReferences)
Create a new
ReferencesCheckResultInfo object. |
SignatureEnvironmentResponse |
createSignatureEnvironmentResponse(Element signatureEnvironment)
Create a new
SignatureEnvironmentResponse object. |
SignatureManifestCheckParams |
createSignatureManifestCheckParams(List referenceInfos,
boolean returnReferenceInputData)
Create a new
SignatureManifestCheckParams object. |
SignerInfo |
createSignerInfo(X509Certificate signerCertificate,
boolean qualifiedCertificate,
boolean qcSourceTSL,
boolean publicAuthority,
String publicAuthorityID,
boolean sscd,
boolean sscdSourceTSL,
String issuerCountryCode)
Create a new
SignerInfo object. |
SingleSignatureInfo |
createSingleSignatureInfo(List dataObjectInfos,
CreateSignatureInfo createSignatureInfo,
boolean securityLayerConform)
Create a new
SingleSignatureInfo object. |
SingleSignatureInfo |
createSingleSignatureInfoCMS(DataObjectInfo dataObjectInfo,
boolean securityLayerConform)
Create a new
SingleSignatureInfo object. |
SupplementProfile |
createSupplementProfile(String profileID)
Create a new
SupplementProfile object containing a reference
to a locally stored profile. |
SupplementProfile |
createSupplementProfile(XMLDataObjectAssociation supplementProfile)
Create a new
SupplementProfile object by providing the profile
data explicitly. |
TransformParameter |
createTransformParameter(String URI)
Create a new
TransformParameter object with the data
contained at the given URI. |
TransformParameter |
createTransformParameter(String URI,
InputStream binaryData)
Creata a new
TransformParameter object containing the
binary data. |
TransformParameter |
createTransformParameter(String URI,
String digestMethod,
byte[] digestValue)
Create a new
TransformParameter object containing the hash
value of the transformation data. |
VerifyCMSSignatureRequest |
createVerifyCMSSignatureRequest(int[] signatories,
Date dateTime,
InputStream cmsSignature,
CMSDataObject dataObject,
String trustProfileID)
Create a new
VerifyCMSSignatureRequest object. |
VerifyCMSSignatureResponse |
createVerifyCMSSignatureResponse(List responseElements)
Create a new
VerifyCMSSignatureResponse object. |
VerifyCMSSignatureResponseElement |
createVerifyCMSSignatureResponseElement(SignerInfo signerInfo,
CheckResult signatureCheck,
CheckResult certificateCheck)
Create a new
VerifyCMSSignatureResponseElement object. |
VerifySignatureInfo |
createVerifySignatureInfo(Content verifySignatureEnvironment,
VerifySignatureLocation verifySignatureLocation)
Create a new
VerifySignatureInfo object. |
VerifySignatureLocation |
createVerifySignatureLocation(String xPathExpression,
Map namespaceDeclarations)
Create a new
VerifySignatureLocation object. |
VerifyTransformsInfoProfile |
createVerifyTransformsInfoProfile(List transforms,
List transformParameters)
Create a new
VerifyTransformsInfoProfile object by providing
the profile data explicitly. |
VerifyTransformsInfoProfile |
createVerifyTransformsInfoProfile(String profileID)
Create a new
VerifyTransformsInfoProfile object containing
a reference to a locally stored profile. |
VerifyXMLSignatureRequest |
createVerifyXMLSignatureRequest(Date dateTime,
VerifySignatureInfo verifySignatureInfo,
List supplementProfiles,
SignatureManifestCheckParams signatureManifestParams,
boolean returnHashInputData,
String trustProfileID)
Create a new
VerifyXMLSignatureRequest object. |
VerifyXMLSignatureResponse |
createVerifyXMLSignatureResponse(SignerInfo signerInfo,
List hashInputDatas,
List referenceInputDatas,
ReferencesCheckResult signatureCheck,
ReferencesCheckResult signatureManifestCheck,
List xmlDsigManifestChecks,
CheckResult certificateCheck)
Create a new
VerifyXMLSignatureResponse object. |
X509IssuerSerial |
createX509IssuerSerial(String issuerName,
BigInteger serialNumber)
Create a new
X509IssuerSerial object. |
XMLDataObjectAssociation |
createXMLDataObjectAssociation(MetaInfo metaInfo,
Content xmlContent)
Create a new
XMLDataObjectAssociation object. |
XPathFilter |
createXPathFilter(String filterType,
String xPathExpression,
Map namespaceDeclarations)
Create a new
XPathFilter object. |
Transform |
createXPathFilter2Transform(List xPathFilters)
Create a new
XPathFilter2Transform type of
Transform . |
Transform |
createXPathTransform(String xPathExpression,
Map namespaceDeclarations)
Create an
XPathTransform type of Transform . |
Transform |
createXSLTTransform(Element styleSheet)
Create an
XSLTTransform type of Transform . |
getInstance
public CreateXMLSignatureRequest createCreateXMLSignatureRequest(String keyIdentifier, List singleSignatureInfos)
SPSSFactory
CreateXMLSignatureRequest
object.createCreateXMLSignatureRequest
in class SPSSFactory
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 CreateCMSSignatureRequest createCreateCMSSignatureRequest(String keyIdentifier, List singleSignatureInfos)
SPSSFactory
CreateCMSSignatureRequest
object.createCreateCMSSignatureRequest
in class SPSSFactory
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 CreateCMSSignatureResponse createCreateCMSSignatureResponse(List responseElements)
SPSSFactory
CreateCMSSignatureResponse
object.createCreateCMSSignatureResponse
in class SPSSFactory
responseElements
- The elements of the response, either
CMSSignatureResponse
objects, or
ErrorResponse
objects.CreateCMSSignatureResponse
containing the
above data.public CMSSignatureResponse createCMSSignatureResponse(String base64value)
SPSSFactory
SignatureEnvironmentResponse
object.createCMSSignatureResponse
in class SPSSFactory
SignatureEnvironmentResponse
containing the
signatureEnvironment
.public SingleSignatureInfo createSingleSignatureInfo(List dataObjectInfos, CreateSignatureInfo createSignatureInfo, boolean securityLayerConform)
SPSSFactory
SingleSignatureInfo
object.createSingleSignatureInfo
in class SPSSFactory
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 SingleSignatureInfo createSingleSignatureInfoCMS(DataObjectInfo dataObjectInfo, boolean securityLayerConform)
SPSSFactory
SingleSignatureInfo
object.createSingleSignatureInfoCMS
in class SPSSFactory
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 DataObjectInfo createDataObjectInfo(String structure, boolean childOfManifest, Content dataObject, CreateTransformsInfoProfile createTransformsInfoProfile)
SPSSFactory
DataObjectInfo
object.createDataObjectInfo
in class SPSSFactory
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 DataObjectInfo createDataObjectInfo(String structure, CMSDataObject dataObject)
SPSSFactory
DataObjectInfo
object.createDataObjectInfo
in class SPSSFactory
structure
- The type of signature to create.dataObject
- The data object that will be signed.DataObjectInfo
containing the above data.public CreateTransformsInfoProfile createCreateTransformsInfoProfile(String profileID)
SPSSFactory
CreateTransformsInfoProfile
object containing a
reference to a locally stored profile.createCreateTransformsInfoProfile
in class SPSSFactory
profileID
- The profile ID to resolve during signature creation.CreateTransformsInfoProfile
containing the given
profile ID.public CreateTransformsInfoProfile createCreateTransformsInfoProfile(CreateTransformsInfo transformsInfo, List supplements)
SPSSFactory
CreateTransformsInfoProfile
object by providing
the profile data explicitly.createCreateTransformsInfoProfile
in class SPSSFactory
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 CreateTransformsInfo createCreateTransformsInfo(List transforms, MetaInfo finalDataMetaInfo)
SPSSFactory
CreateTransformsInfo
object.createCreateTransformsInfo
in class SPSSFactory
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 CreateSignatureInfo createCreateSignatureInfo(Content createSignatureEnvironment, CreateSignatureEnvironmentProfile createSignatureEnvironmentProfile)
SPSSFactory
CreateSignatureInfo
object.createCreateSignatureInfo
in class SPSSFactory
createSignatureEnvironment
- The signature environment that will
contain the signature.createSignatureEnvironmentProfile
- Additional information about
the signture environment.CreateSignatureInfo
containing the above data.public CreateSignatureEnvironmentProfile createCreateSignatureEnvironmentProfile(CreateSignatureLocation createSignatureLocation, List supplements)
SPSSFactory
CreateSignatureEnvironmentProfile
object by
providing the profile data explicitly.createCreateSignatureEnvironmentProfile
in class SPSSFactory
createSignatureLocation
- The location where the signature will be
inserted.supplements
- Additional information about the signature environment.CreateSignatureEnvironmentProfile
containing the
above data.public CreateSignatureLocation createCreateSignatureLocation(String signatureLocationXPath, int signatureLocationIndex, Map namespaceDeclarations)
SPSSFactory
CreateSignatureLocation
object.createCreateSignatureLocation
in class SPSSFactory
signatureLocationXPath
- The XPath expression to select the signature
parent element within the signature environment.signatureLocationIndex
- 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 CreateSignatureEnvironmentProfile createCreateSignatureEnvironmentProfile(String profileID)
SPSSFactory
CreateSignatureEnvironmentProfile
object
containing a reference to a locally stored profile.createCreateSignatureEnvironmentProfile
in class SPSSFactory
profileID
- The profile ID to resolve during signature creation.CreateSignatureEnvironmentProfile
containing
the given profile ID.public CreateXMLSignatureResponse createCreateXMLSignatureResponse(List responseElements)
SPSSFactory
CreateXMLSignatureResponse
object.createCreateXMLSignatureResponse
in class SPSSFactory
responseElements
- The elements of the response, either
SignatureEnvironmentResponse
objects, or
ErrorResponse
objects.CreateXMLSignatureResponse
containing the
above data.public SignatureEnvironmentResponse createSignatureEnvironmentResponse(Element signatureEnvironment)
SPSSFactory
SignatureEnvironmentResponse
object.createSignatureEnvironmentResponse
in class SPSSFactory
signatureEnvironment
- The signature environment containing the
signature.SignatureEnvironmentResponse
containing the
signatureEnvironment
.public ErrorResponse createErrorResponse(int code, String info)
SPSSFactory
ErrorResponse
object.createErrorResponse
in class SPSSFactory
code
- The numerical error code.info
- Verbose error information.ErrorResponse
containing the above data.public VerifyCMSSignatureRequest createVerifyCMSSignatureRequest(int[] signatories, Date dateTime, InputStream cmsSignature, CMSDataObject dataObject, String trustProfileID)
SPSSFactory
VerifyCMSSignatureRequest
object.createVerifyCMSSignatureRequest
in class SPSSFactory
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 CMSDataObject createCMSDataObject(MetaInfo metaInfo, CMSContent content, BigDecimal excludeByteRangeFrom, BigDecimal excludeByteRangeTo)
SPSSFactory
CMSDataObject
object from data at a given URI.createCMSDataObject
in class SPSSFactory
metaInfo
- Type information about the CMSDataObject
.
May be null
.content
- The CMS content containing the data.CMSDataObject
containing the data.public CMSContent createCMSContent(InputStream binaryContent)
SPSSFactory
CMSContent
object from a byte stream.createCMSContent
in class SPSSFactory
binaryContent
- The byte stream containing the signed data.CMSContent
containing the data from the
byte stream.public CMSContent createCMSContent(String referenceURI)
SPSSFactory
CMSContent
object from the data contained at the
given URI.createCMSContent
in class SPSSFactory
referenceURI
- The URI identifying the data. Must be resolvable.CMSContent
containing a reference to the signed
data.public CMSDataObject createCMSDataObject(MetaInfo metaInfo, String referenceURI)
public VerifyCMSSignatureResponse createVerifyCMSSignatureResponse(List responseElements)
SPSSFactory
VerifyCMSSignatureResponse
object.createVerifyCMSSignatureResponse
in class SPSSFactory
responseElements
- Verification information about each signature.VerifyCMSSignatureResponse
containing the
status of signature verification for each signature contained in the
request.public VerifyCMSSignatureResponseElement createVerifyCMSSignatureResponseElement(SignerInfo signerInfo, CheckResult signatureCheck, CheckResult certificateCheck)
SPSSFactory
VerifyCMSSignatureResponseElement
object.createVerifyCMSSignatureResponseElement
in class SPSSFactory
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 VerifyXMLSignatureRequest createVerifyXMLSignatureRequest(Date dateTime, VerifySignatureInfo verifySignatureInfo, List supplementProfiles, SignatureManifestCheckParams signatureManifestParams, boolean returnHashInputData, String trustProfileID)
SPSSFactory
VerifyXMLSignatureRequest
object.createVerifyXMLSignatureRequest
in class SPSSFactory
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 VerifySignatureInfo createVerifySignatureInfo(Content verifySignatureEnvironment, VerifySignatureLocation verifySignatureLocation)
SPSSFactory
VerifySignatureInfo
object.createVerifySignatureInfo
in class SPSSFactory
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 VerifySignatureLocation createVerifySignatureLocation(String xPathExpression, Map namespaceDeclarations)
SPSSFactory
VerifySignatureLocation
object.createVerifySignatureLocation
in class SPSSFactory
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 SupplementProfile createSupplementProfile(String profileID)
SPSSFactory
SupplementProfile
object containing a reference
to a locally stored profile.createSupplementProfile
in class SPSSFactory
profileID
- The profile ID to resolve during signature verification.SupplementProfile
containing the profile ID.public SupplementProfile createSupplementProfile(XMLDataObjectAssociation supplementProfile)
SPSSFactory
SupplementProfile
object by providing the profile
data explicitly.createSupplementProfile
in class SPSSFactory
supplementProfile
- The profile data.SupplementProfile
containing the profile data.public SignatureManifestCheckParams createSignatureManifestCheckParams(List referenceInfos, boolean returnReferenceInputData)
SPSSFactory
SignatureManifestCheckParams
object.createSignatureManifestCheckParams
in class SPSSFactory
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 ReferenceInfo createReferenceInfo(List verifyTransformsInfoProfiles)
SPSSFactory
ReferenceInfo
object.createReferenceInfo
in class SPSSFactory
verifyTransformsInfoProfiles
- The transformation profiles valid for
the associated reference.ReferenceInfo
containing the transformation
profiles.public VerifyTransformsInfoProfile createVerifyTransformsInfoProfile(List transforms, List transformParameters)
SPSSFactory
VerifyTransformsInfoProfile
object by providing
the profile data explicitly.createVerifyTransformsInfoProfile
in class SPSSFactory
transforms
- A valid chain of transformations for the reference.
May be null
.transformParameters
- Additional transformation information.VerifyTransformsInfoProfile
containing the above
data.public VerifyTransformsInfoProfile createVerifyTransformsInfoProfile(String profileID)
SPSSFactory
VerifyTransformsInfoProfile
object containing
a reference to a locally stored profile.createVerifyTransformsInfoProfile
in class SPSSFactory
profileID
- The profile ID to resolve during signature verification.VerifyTransformsInfoProfile
containing the
given profile ID.public TransformParameter createTransformParameter(String URI, String digestMethod, byte[] digestValue)
SPSSFactory
TransformParameter
object containing the hash
value of the transformation data.createTransformParameter
in class SPSSFactory
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 TransformParameter createTransformParameter(String URI, InputStream binaryData)
SPSSFactory
TransformParameter
object containing the
binary data.createTransformParameter
in class SPSSFactory
URI
- The URI identifying the data.binaryData
- The binary data.TransformParameter
containig the binary data.public TransformParameter createTransformParameter(String URI)
SPSSFactory
TransformParameter
object with the data
contained at the given URI.createTransformParameter
in class SPSSFactory
URI
- The URI identifying the data. The URI will be resolved during
signature verification.TransformParameter
containing the URI of the
data.public VerifyXMLSignatureResponse createVerifyXMLSignatureResponse(SignerInfo signerInfo, List hashInputDatas, List referenceInputDatas, ReferencesCheckResult signatureCheck, ReferencesCheckResult signatureManifestCheck, List xmlDsigManifestChecks, CheckResult certificateCheck)
SPSSFactory
VerifyXMLSignatureResponse
object.createVerifyXMLSignatureResponse
in class SPSSFactory
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 ReferencesCheckResult createReferencesCheckResult(int code, ReferencesCheckResultInfo info)
SPSSFactory
ReferencesCheckResult
object.createReferencesCheckResult
in class SPSSFactory
code
- The status code.info
- Additional information about the reference check.ReferencesCheckResult
containing the above data.public ReferencesCheckResultInfo createReferencesCheckResultInfo(NodeList anyOtherInfo, int[] failedReferences)
SPSSFactory
ReferencesCheckResultInfo
object.createReferencesCheckResultInfo
in class SPSSFactory
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 ManifestRefsCheckResult createManifestRefsCheckResult(int code, ManifestRefsCheckResultInfo info)
SPSSFactory
ManifestRefsCheckResult
object.createManifestRefsCheckResult
in class SPSSFactory
code
- The status code.info
- Additional information about the manifest check. May be
null
.ManifestRefsCheckResult
containing the above
data.public ManifestRefsCheckResultInfo createManifestRefsCheckResultInfo(NodeList anyOtherInfo, int[] failedReferences, int referringSigReference)
SPSSFactory
ManifestRefsCheckResultInfo
object.createManifestRefsCheckResultInfo
in class SPSSFactory
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 Content createContent(InputStream binaryData, String referenceURI)
SPSSFactory
Content
object containing binary data.createContent
in class SPSSFactory
binaryData
- An InputStream
containing the binary data.referenceURI
- An URI identifying the data. May be null
.Content
object containing the data.public Content createContent(String locationReferenceURI, String referenceURI)
SPSSFactory
Content
object containing location reference data.createContent
in class SPSSFactory
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 Content createContent(String referenceURI)
SPSSFactory
Content
object referencing data via a URI.createContent
in class SPSSFactory
referenceURI
- The URI pointing to the content.Content
object containing the reference.public Content createContent(NodeList xmlData, String referenceURI)
SPSSFactory
Content
object containing XML data.createContent
in class SPSSFactory
xmlData
- The XML data contained in the new Content
.referenceURI
- An URI identifying the data. May be null
.Content
object containing the data.public XMLDataObjectAssociation createXMLDataObjectAssociation(MetaInfo metaInfo, Content xmlContent)
SPSSFactory
XMLDataObjectAssociation
object.createXMLDataObjectAssociation
in class SPSSFactory
metaInfo
- Information about the content type. May be
null
.xmlContent
- The Content
object containing the data.XMLDataObjectAssociation
containing the above
data.public MetaInfo createMetaInfo(String mimeType, String description, NodeList otherInfo, String type)
SPSSFactory
MetaInfo
object.createMetaInfo
in class SPSSFactory
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 Transform createCanonicalizationTransform(String algorithmURI)
SPSSFactory
CanonicalizationTransform
type of Transform
.createCanonicalizationTransform
in class SPSSFactory
algorithmURI
- The algorithm URI of the canonicalization.CanonicalizationTransform
object.public Transform createExclusiveCanonicalizationTransform(String algorithmURI, List inclusiveNamespacePrefixes)
SPSSFactory
ExclusiveCanonicalizationTransform
type of
Transform
.createExclusiveCanonicalizationTransform
in class SPSSFactory
algorithmURI
- The algorithm URI of the exclusive canonicalization.inclusiveNamespacePrefixes
- The prefixes of the namespaces to
treat according to canonical XML.ExclusiveCanonicalizationTransform
public Transform createBase64Transform()
SPSSFactory
Base64Transform
type of Transform
.createBase64Transform
in class SPSSFactory
Transform
denoting a Base64 decoding.public Transform createEnvelopedSignatureTransform()
SPSSFactory
EnvelopedSignatureTransform
type of
Transform
.createEnvelopedSignatureTransform
in class SPSSFactory
Transform
denoting an enveloped signature.public Transform createXSLTTransform(Element styleSheet)
SPSSFactory
XSLTTransform
type of Transform
.createXSLTTransform
in class SPSSFactory
styleSheet
- The XSLT stylesheet contained in the
Transform
.Transform
containing the XSLT stylesheet.public Transform createXPathTransform(String xPathExpression, Map namespaceDeclarations)
SPSSFactory
XPathTransform
type of Transform
.createXPathTransform
in class SPSSFactory
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 Transform createXPathFilter2Transform(List xPathFilters)
SPSSFactory
XPathFilter2Transform
type of
Transform
.createXPathFilter2Transform
in class SPSSFactory
xPathFilters
- The filters contained in the newly created
XPathFilter2Transform
.XPathFilter2Transform
containing the given
filters.public XPathFilter createXPathFilter(String filterType, String xPathExpression, Map namespaceDeclarations)
SPSSFactory
XPathFilter
object.createXPathFilter
in class SPSSFactory
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 CheckResult createCheckResult(int code, NodeList info)
SPSSFactory
CheckResult
object.createCheckResult
in class SPSSFactory
code
- The check code.info
- Verbose information about the check. May be null
.CheckResult
containing the above data.public SignerInfo createSignerInfo(X509Certificate signerCertificate, boolean qualifiedCertificate, boolean qcSourceTSL, boolean publicAuthority, String publicAuthorityID, boolean sscd, boolean sscdSourceTSL, String issuerCountryCode)
SPSSFactory
SignerInfo
object.createSignerInfo
in class SPSSFactory
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 X509IssuerSerial createX509IssuerSerial(String issuerName, BigInteger serialNumber)
SPSSFactory
X509IssuerSerial
object.createX509IssuerSerial
in class SPSSFactory
issuerName
- The distinguished name of the issuer.serialNumber
- The certificate serial number.X509IssuerSerial
containing the above data.Copyright © 2016. All rights reserved.