public interface SignerSignedInfo
SignerSignature.getSignerSignedInfo()| Modifier and Type | Method and Description |
|---|---|
SignerReference |
addReference(SignerReference reference)
Adds a completely configured reference object to the signed information.
|
SignerReference |
createReference()
Create an empty reference object.
|
CanonicalizationAlgorithm |
getCanonicalizationAlgorithm()
Gets the canonicalization algorithm employed by this signed information.
|
java.lang.String |
getId()
Gets the Id attribute value of the SignedInfo element.
|
SignatureAlgorithm |
getSignatureAlgorithm()
Gets the signature algorithm employed by this signed information.
|
SignerReference[] |
getSignerReferences()
Gets an array containing all reference objects registered in the context of this signed information.
|
SignerReference |
removeReference(SignerReference reference)
Removes a reference object from this signed information.
|
void |
setCanonicalizationAlgorithm(CanonicalizationAlgorithm canonicalizationAlgorithm)
Sets the canonicalization algorithm for this signed information.
|
void |
setId(java.lang.String id)
Sets the Id attribute value of the SignedInfo element.
|
void |
setSignatureAlgorithm(SignatureAlgorithm signatureAlgorithm)
Sets the signature algorithm for this signed information.
|
SignerReference createReference() throws SignedInfoException
SignedInfoException - if crating the reference object fails for any reason.SignerReference addReference(SignerReference reference) throws SignedInfoException
SignerManifest or SignerSignedInfo container, this method will have no
effect.reference - The reference to be added. Must not be null.null if adding the reference is impossible (see above).SignedInfoException - if a reference without its URI attribute set already exists within this
signed information, or if adding the reference fails for any other
reason.SignerReference removeReference(SignerReference reference)
reference - The signing use case interface to the reference to be removed from the signed
information.null if the reference
to be removed does not exist in the context of this signed information.SignerReference[] getSignerReferences()
null if there are no references available.void setId(java.lang.String id)
null, the possibly existing Id attribute will
be removed.id - The value for the Id attribute of the SignedInfo element.java.lang.String getId()
null if the Id attribute is not available.void setSignatureAlgorithm(SignatureAlgorithm signatureAlgorithm) throws SignedInfoException
signatureAlgorithm - The signature algorithm which will be used to compute the signature value
of the XML signature. Must not be null.SignedInfoException - if requesting the DOM element representation from the specified
signature algorithm fails.SignatureAlgorithm getSignatureAlgorithm()
null if it has not
been specified yet.void setCanonicalizationAlgorithm(CanonicalizationAlgorithm canonicalizationAlgorithm) throws SignedInfoException
canonicalizationAlgorithm - The canonicalization algorithm used to create the canonicalization
of all the signed information, which will be used as the input of
the signature algorithm. Must not be null.SignedInfoException - if requesting the DOM element representation from the canonicalization
algorithm fails.CanonicalizationAlgorithm getCanonicalizationAlgorithm()
null if it
has not been specified yet.