|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.security.saml.ext.AssertionWrapper
public class AssertionWrapper
Class AssertionWrapper can generate, sign, and validate both SAML v1.1 and SAML v2.0 assertions.
Created on May 18, 2009
Constructor Summary | |
---|---|
AssertionWrapper(org.opensaml.saml2.core.Assertion saml2)
Constructor AssertionWrapper creates a new AssertionWrapper instance. |
|
AssertionWrapper(org.opensaml.saml1.core.Assertion saml1)
Constructor AssertionWrapper creates a new AssertionWrapper instance. |
|
AssertionWrapper(Element element)
Constructor AssertionWrapper creates a new AssertionWrapper instance. |
|
AssertionWrapper(SAMLParms parms)
Constructor AssertionWrapper creates a new AssertionWrapper instance. |
|
AssertionWrapper(org.opensaml.xml.XMLObject xmlObject)
Constructor AssertionWrapper creates a new AssertionWrapper instance. |
Method Summary | |
---|---|
String |
assertionToString()
Method assertionToString ... |
List<String> |
getConfirmationMethods()
Method getConfirmationMethods returns the confirmationMethods of this AssertionWrapper object. |
Element |
getElement()
Get the Assertion as a DOM Element. |
String |
getId()
Method getId returns the id of this AssertionWrapper object. |
String |
getIssuerString()
Method getIssuerString returns the issuerString of this AssertionWrapper object. |
org.opensaml.saml1.core.Assertion |
getSaml1()
Method getSaml1 returns the saml1 of this AssertionWrapper object. |
org.opensaml.saml2.core.Assertion |
getSaml2()
Method getSaml2 returns the saml2 of this AssertionWrapper object. |
org.opensaml.common.SAMLVersion |
getSamlVersion()
Method getSamlVersion returns the samlVersion of this AssertionWrapper object. |
SAMLKeyInfo |
getSignatureKeyInfo()
Get the SAMLKeyInfo associated with the signature of the assertion |
byte[] |
getSignatureValue()
Get the SignatureValue bytes of the signed SAML Assertion |
SAMLKeyInfo |
getSubjectKeyInfo()
Get the SAMLKeyInfo associated with the Subject KeyInfo |
org.opensaml.xml.XMLObject |
getXmlObject()
Method getXmlObject returns the xmlObject of this AssertionWrapper object. |
boolean |
isCreated()
Method isCreated returns the created of this AssertionWrapper object. |
boolean |
isSigned()
Method isSigned returns the signed of this AssertionWrapper object. |
void |
parseHOKSubject(RequestData data,
WSDocInfo docInfo)
This method parses the KeyInfo of the Subject for the holder-of-key confirmation method, as required by the SAML Token spec. |
void |
setSignature(org.opensaml.xml.signature.Signature signature)
Method setSignature sets the signature of this AssertionWrapper object. |
void |
signAssertion(String issuerKeyName,
String issuerKeyPassword,
Crypto issuerCrypto,
boolean sendKeyValue)
Create an enveloped signature on the assertion that has been created. |
void |
signAssertion(String issuerKeyName,
String issuerKeyPassword,
Crypto issuerCrypto,
boolean sendKeyValue,
String canonicalizationAlgorithm,
String signatureAlgorithm)
Create an enveloped signature on the assertion that has been created. |
Element |
toDOM(Document doc)
Create a DOM from the current XMLObject content. |
void |
verifySignature(RequestData data,
WSDocInfo docInfo)
Verify the signature of this assertion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AssertionWrapper(Element element) throws WSSecurityException
element
- of type Element
UnmarshallingException
- when
WSSecurityException
public AssertionWrapper(org.opensaml.saml2.core.Assertion saml2)
saml2
- of type Assertionpublic AssertionWrapper(org.opensaml.saml1.core.Assertion saml1)
saml1
- of type Assertionpublic AssertionWrapper(org.opensaml.xml.XMLObject xmlObject)
xmlObject
- of type XMLObjectpublic AssertionWrapper(SAMLParms parms) throws WSSecurityException
parms
- of type SAMLParms
WSSecurityException
Method Detail |
---|
public org.opensaml.saml1.core.Assertion getSaml1()
public org.opensaml.saml2.core.Assertion getSaml2()
public org.opensaml.xml.XMLObject getXmlObject()
public boolean isCreated()
public Element toDOM(Document doc) throws WSSecurityException
doc
- of type Document
WSSecurityException
public String assertionToString() throws WSSecurityException
WSSecurityException
public String getId()
public String getIssuerString()
public List<String> getConfirmationMethods()
public boolean isSigned()
public void setSignature(org.opensaml.xml.signature.Signature signature)
signature
- the signature of this AssertionWrapper object.public void signAssertion(String issuerKeyName, String issuerKeyPassword, Crypto issuerCrypto, boolean sendKeyValue) throws WSSecurityException
issuerKeyName
- the Issuer KeyName to use with the issuerCrypto argumentissuerKeyPassword
- the Issuer Password to use with the issuerCrypto argumentissuerCrypto
- the Issuer Crypto instancesendKeyValue
- whether to send the key value or not
WSSecurityException
public void signAssertion(String issuerKeyName, String issuerKeyPassword, Crypto issuerCrypto, boolean sendKeyValue, String canonicalizationAlgorithm, String signatureAlgorithm) throws WSSecurityException
issuerKeyName
- the Issuer KeyName to use with the issuerCrypto argumentissuerKeyPassword
- the Issuer Password to use with the issuerCrypto argumentissuerCrypto
- the Issuer Crypto instancesendKeyValue
- whether to send the key value or notcanonicalizationAlgorithm
- the canonicalization algorithm to be used for signingsignatureAlgorithm
- the signature algorithm to be used for signing
WSSecurityException
public void verifySignature(RequestData data, WSDocInfo docInfo) throws WSSecurityException
org.opensaml.xml.validation.ValidationException
WSSecurityException
public void parseHOKSubject(RequestData data, WSDocInfo docInfo) throws WSSecurityException
WSSecurityException
public org.opensaml.common.SAMLVersion getSamlVersion()
public Element getElement()
public SAMLKeyInfo getSignatureKeyInfo()
public SAMLKeyInfo getSubjectKeyInfo()
public byte[] getSignatureValue() throws WSSecurityException
WSSecurityException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |