|
PicketLink Federation Core 2.1.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.picketlink.identity.federation.api.saml.v2.sig.SAML2Signature
public class SAML2Signature
Class that deals with SAML2 Signature
Constructor Summary | |
---|---|
SAML2Signature()
|
Method Summary | |
---|---|
String |
getDigestMethod()
|
Node |
getNextSiblingOfIssuer(Document doc)
|
String |
getSignatureMethod()
|
void |
setDigestMethod(String digestMethod)
|
void |
setNextSibling(Node sibling)
|
void |
setSignatureIncludeKeyInfo(boolean val)
Set to false, if you do not want to include keyinfo in the signature |
void |
setSignatureMethod(String signatureMethod)
|
Document |
sign(Document doc,
String referenceID,
KeyPair keyPair)
Sign an Document at the root |
Document |
sign(Document doc,
String idValueOfAssertion,
KeyPair keypair,
String referenceURI)
Sign a document |
Document |
sign(RequestAbstractType request,
KeyPair keypair)
Sign an RequestType at the root |
Document |
sign(ResponseType response,
KeyPair keypair)
Sign an ResponseType at the root |
Document |
sign(ResponseType response,
String idValueOfAssertion,
KeyPair keypair,
String referenceURI)
Sign an assertion whose id value is provided in the response type |
void |
signSAMLDocument(Document samlDocument,
KeyPair keypair)
Sign a SAML Document |
boolean |
validate(Document signedDocument,
PublicKey publicKey)
Validate the SAML2 Document |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SAML2Signature()
Method Detail |
---|
public String getSignatureMethod()
public void setSignatureMethod(String signatureMethod)
public String getDigestMethod()
public void setDigestMethod(String digestMethod)
public void setNextSibling(Node sibling)
public void setSignatureIncludeKeyInfo(boolean val)
val
- public Document sign(RequestAbstractType request, KeyPair keypair) throws SAXException, IOException, ParserConfigurationException, GeneralSecurityException, MarshalException, XMLSignatureException
request
- keypair
- Key PairdigestMethod
- (Example: DigestMethod.SHA1)signatureMethod
- (Example: SignatureMethod.DSA_SHA1)
ParserConfigurationException
IOException
SAXException
XMLSignatureException
MarshalException
GeneralSecurityException
public Document sign(ResponseType response, KeyPair keypair) throws ParserConfigurationException, GeneralSecurityException, MarshalException, XMLSignatureException
response
- keypair
- Key PairdigestMethod
- (Example: DigestMethod.SHA1)signatureMethod
- (Example: SignatureMethod.DSA_SHA1)
ParserConfigurationException
XMLSignatureException
MarshalException
GeneralSecurityException
public Document sign(Document doc, String referenceID, KeyPair keyPair) throws ParserConfigurationException, GeneralSecurityException, MarshalException, XMLSignatureException
response
- keyPair
- Key PairdigestMethod
- (Example: DigestMethod.SHA1)signatureMethod
- (Example: SignatureMethod.DSA_SHA1)
ParserConfigurationException
XMLSignatureException
MarshalException
GeneralSecurityException
public Document sign(ResponseType response, String idValueOfAssertion, KeyPair keypair, String referenceURI) throws ParserConfigurationException, XPathException, TransformerFactoryConfigurationError, TransformerException, GeneralSecurityException, MarshalException, XMLSignatureException
response
- idValueOfAssertion
- keypair
- referenceURI
-
ParserConfigurationException
TransformerException
TransformerFactoryConfigurationError
XPathException
XMLSignatureException
MarshalException
GeneralSecurityException
public Document sign(Document doc, String idValueOfAssertion, KeyPair keypair, String referenceURI) throws ParserConfigurationException, XPathException, TransformerFactoryConfigurationError, TransformerException, GeneralSecurityException, MarshalException, XMLSignatureException
doc
- idValueOfAssertion
- keypair
- referenceURI
-
ParserConfigurationException
XPathException
TransformerFactoryConfigurationError
TransformerException
GeneralSecurityException
MarshalException
XMLSignatureException
public void signSAMLDocument(Document samlDocument, KeyPair keypair) throws ProcessingException
samlDocument
- keypair
-
ProcessingException
public boolean validate(Document signedDocument, PublicKey publicKey) throws ProcessingException
signedDocument
- publicKey
-
ProcessingException
public Node getNextSiblingOfIssuer(Document doc)
|
PicketLink Federation Core 2.1.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |