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:SignedInfoelement from theds:Signatureelement of the signed document (SignerResult.getSignedDocument()).Gets theds:Signatureelement of the signed document (SignerResult.getSignedDocument()).Gets theds:SignedInfoelement from theds:Signatureelement of the signed document (SignerResult.getSignedDocument()).Methods inherited from class se.idsec.signservice.security.sign.impl.AbstractSignerResult
getSignedDocument, getSignerCertificate, getSignerCertificateChain, getSigningTime, setSignedDocument, setSignerCertificate, setSignerCertificateChain, setSigningTimeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:Signatureelement of the signed document (SignerResult.getSignedDocument()).- Specified by:
getSignatureElementin interfaceXMLSignerResult- Returns:
- the Signature element
-
getSignedInfo
Gets theds:SignedInfoelement from theds:Signatureelement of the signed document (SignerResult.getSignedDocument()).- Specified by:
getSignedInfoin interfaceXMLSignerResult- Returns:
- the SignedInfo element
-
getCanonicalizedSignedInfo
public byte[] getCanonicalizedSignedInfo()Gets the canonicalized bytes of theds:SignedInfoelement from theds:Signatureelement of the signed document (SignerResult.getSignedDocument()).- Specified by:
getCanonicalizedSignedInfoin interfaceXMLSignerResult- Returns:
- a byte array
-