Class DefaultXMLSignerResult
java.lang.Object
se.idsec.signservice.security.sign.impl.AbstractSignerResult<Document>
se.idsec.signservice.security.sign.xml.impl.DefaultXMLSignerResult
- All Implemented Interfaces:
SignerResult<Document>
,XMLSignerResult
public class DefaultXMLSignerResult
extends AbstractSignerResult<Document>
implements XMLSignerResult
Default implementation of the
XMLSignerResult
.- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultXMLSignerResult
(org.apache.xml.security.signature.XMLSignature signature) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Gets the canonicalized bytes of theds:SignedInfo
element from theds:Signature
element of the signed document (SignerResult.getSignedDocument()
).Gets theds:Signature
element of the signed document (SignerResult.getSignedDocument()
).Gets theds:SignedInfo
element from theds:Signature
element of the signed document (SignerResult.getSignedDocument()
).Methods inherited from class se.idsec.signservice.security.sign.impl.AbstractSignerResult
getSignedDocument, getSignerCertificate, getSignerCertificateChain, getSigningTime, setSignedDocument, setSignerCertificate, setSignerCertificateChain, setSigningTime
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface se.idsec.signservice.security.sign.SignerResult
getSignedDocument, getSignerCertificate, getSignerCertificateChain, getSigningTime
-
Constructor Details
-
DefaultXMLSignerResult
public DefaultXMLSignerResult(org.apache.xml.security.signature.XMLSignature signature) Constructor.- Parameters:
signature
- the signature object
-
-
Method Details
-
getSignatureElement
Gets theds:Signature
element of the signed document (SignerResult.getSignedDocument()
).- Specified by:
getSignatureElement
in interfaceXMLSignerResult
- Returns:
- the Signature element
-
getSignedInfo
Gets theds:SignedInfo
element from theds:Signature
element of the signed document (SignerResult.getSignedDocument()
).- Specified by:
getSignedInfo
in interfaceXMLSignerResult
- Returns:
- the SignedInfo element
-
getCanonicalizedSignedInfo
public byte[] getCanonicalizedSignedInfo()Gets the canonicalized bytes of theds:SignedInfo
element from theds:Signature
element of the signed document (SignerResult.getSignedDocument()
).- Specified by:
getCanonicalizedSignedInfo
in interfaceXMLSignerResult
- Returns:
- a byte array
-