|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectau.gov.nehta.vendorlibrary.common.security.SignedContainerProfileUtil
public final class SignedContainerProfileUtil
Field Summary | |
---|---|
static au.gov.nehta.xsp.CertificateVerifier |
NULL_CERTIFICATE_VERIFIER
CertificateVerifier instance to sign/verify signed data. |
Method Summary | |
---|---|
static org.w3c.dom.Document |
getDataFromSignedPayload(org.w3c.dom.Document signedDocument)
Returns the extracted data/payload form the provided signedPayload Note: This uses the default private key from the keystore. |
static java.util.List<byte[]> |
getDigestValue(org.w3c.dom.Document containerDoc)
Get the 'DigestValue' of each signature in a SignedPayload XML document. |
static org.w3c.dom.Document |
getSignedPayload(java.lang.String sensitivePayload,
java.util.List<javax.security.auth.x500.X500PrivateCredential> certificateKeyPairs)
|
static org.w3c.dom.Document |
getSignedPayload(java.lang.String sensitivePayload,
java.security.cert.X509Certificate siginingCert,
java.security.PrivateKey siginingPrivateKey)
|
static java.util.List<java.security.cert.X509Certificate> |
getSigningCertificates(org.w3c.dom.Document containerDoc)
Get the 'DigestValue' of each signature in a SignedPayload XML document. |
static boolean |
verifySignature(org.w3c.dom.Document signedDocument)
Verifies the signature of a signed document. |
static boolean |
verifySignature(org.w3c.dom.Document signedDocument,
au.gov.nehta.xsp.CertificateVerifier certificateVerifier)
Verifies the signature of a signed document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final au.gov.nehta.xsp.CertificateVerifier NULL_CERTIFICATE_VERIFIER
Method Detail |
---|
public static org.w3c.dom.Document getSignedPayload(java.lang.String sensitivePayload, java.security.cert.X509Certificate siginingCert, java.security.PrivateKey siginingPrivateKey) throws au.gov.nehta.xsp.XspException
au.gov.nehta.xsp.XspException
public static org.w3c.dom.Document getSignedPayload(java.lang.String sensitivePayload, java.util.List<javax.security.auth.x500.X500PrivateCredential> certificateKeyPairs) throws au.gov.nehta.xsp.XspException
au.gov.nehta.xsp.XspException
public static java.util.List<byte[]> getDigestValue(org.w3c.dom.Document containerDoc) throws au.gov.nehta.xsp.XspException
SignedPayload
XML document.
containerDoc
- A DOM Document
structured according to the
signedPayload
element declared in the
XML Secured Payload Schema. Cannot be null.
SignedPayload
XML document.
(in the order that the signature appears in the container document)
au.gov.nehta.xsp.XspException
- If there are any other errors extracting the digest values.public static java.util.List<java.security.cert.X509Certificate> getSigningCertificates(org.w3c.dom.Document containerDoc) throws au.gov.nehta.xsp.XspException
SignedPayload
XML document.
containerDoc
- A DOM Document
structured according to the
signedPayload
element declared in the
XML Secured Payload Schema. Cannot be null.
SignedPayload
XML document.
(in the order that the signature appears in the container document)
au.gov.nehta.xsp.XspException
- If there are any other errors extracting the digest values.public static org.w3c.dom.Document getDataFromSignedPayload(org.w3c.dom.Document signedDocument) throws au.gov.nehta.xsp.XspException
signedDocument
-
Document
au.gov.nehta.xsp.XspException
public static boolean verifySignature(org.w3c.dom.Document signedDocument, au.gov.nehta.xsp.CertificateVerifier certificateVerifier) throws au.gov.nehta.xsp.SignatureValidationException
signedDocument
- the signed documentcertificateVerifier
- the certificate verifier implementation to be used to verify the certificate used
to verify the signature.
Document
au.gov.nehta.xsp.SignatureValidationException
public static boolean verifySignature(org.w3c.dom.Document signedDocument) throws au.gov.nehta.xsp.SignatureValidationException
signedDocument
- the signed document
Document
au.gov.nehta.xsp.SignatureValidationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |