|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.plugin.saml.XmlDigitalSigner
public class XmlDigitalSigner
This helper class, part of the SAML-based Single Sign-On Reference Tool, serves to digitally sign XML files, given the contents of the XML file, and a pair of public and private keys. The file is signed as per the specifications defined by SAML 2.0. This class has been taken from the Google Apps SSO sample code: http://code.google.com/apis/apps/sso/saml_reference_implementation.html
| Constructor Summary | |
|---|---|
XmlDigitalSigner()
|
|
| Method Summary | |
|---|---|
static String |
signXML(String samlResponse,
PublicKey publicKey,
PrivateKey privateKey)
Signs the specified xmlString with the pair of provided keys, as per the SAML 2.0 specifications. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlDigitalSigner()
| Method Detail |
|---|
public static String signXML(String samlResponse,
PublicKey publicKey,
PrivateKey privateKey)
throws SAMLException
samlResponse - SAML Response XML file to be signedpublicKey - public key to read the signed XMLprivateKey - private key to sign the XML
SAMLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||