|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.identity.federation.api.util.XMLSignatureUtil
public class XMLSignatureUtil
Utility for XML Signature
Constructor Summary | |
---|---|
XMLSignatureUtil()
|
Method Summary | |
---|---|
static void |
marshall(org.w3c.dom.Document signedDocument,
java.io.OutputStream os)
Marshall the signed document to an output stream |
static void |
marshall(SignatureType signature,
java.io.OutputStream os)
Marshall a SignatureType to output stream |
static org.w3c.dom.Document |
sign(AuthnRequestType request,
java.security.PrivateKey signingKey,
javax.security.cert.X509Certificate certificate,
java.lang.String digestMethod,
java.lang.String signatureMethod)
Sign an AuthnRequestType |
static org.w3c.dom.Document |
sign(RequestAbstractType request,
java.security.KeyPair keypair,
java.lang.String digestMethod,
java.lang.String signatureMethod)
Sign an RequestType |
static boolean |
validate(org.w3c.dom.Document signedDoc,
java.security.Key publicKey)
Validate a signed document with the given public key |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLSignatureUtil()
Method Detail |
---|
public static org.w3c.dom.Document sign(AuthnRequestType request, java.security.PrivateKey signingKey, javax.security.cert.X509Certificate certificate, java.lang.String digestMethod, java.lang.String signatureMethod) throws java.lang.Exception
request
- signingKey
- Private Key for signingcert
- X509Certificate public key certificate (may be null)digestMethod
- (Example: DigestMethod.SHA1)signatureMethod
- (Example: SignatureMethod.DSA_SHA1)
java.lang.Exception
public static org.w3c.dom.Document sign(RequestAbstractType request, java.security.KeyPair keypair, java.lang.String digestMethod, java.lang.String signatureMethod) throws java.lang.Exception
request
- keypair
- Key PairdigestMethod
- (Example: DigestMethod.SHA1)signatureMethod
- (Example: SignatureMethod.DSA_SHA1)
java.lang.Exception
public static boolean validate(org.w3c.dom.Document signedDoc, java.security.Key publicKey) throws java.lang.Exception
signedDoc
- publicKey
-
java.lang.Exception
public static void marshall(SignatureType signature, java.io.OutputStream os) throws java.lang.Exception
signature
- os
-
java.lang.Exception
public static void marshall(org.w3c.dom.Document signedDocument, java.io.OutputStream os) throws java.lang.Exception
signedDocument
- os
-
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |