|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.solutions.identity.relyingparty.saml.SAMLTokenVerifier
public class SAMLTokenVerifier
A SAML token is sent to a web application in a CardSpace login attempt and this can be used for decryption and verification of those tokens.
Constructor Summary | |
---|---|
SAMLTokenVerifier()
|
Method Summary | |
---|---|
org.w3c.dom.Element |
decryptToken(java.lang.String token,
java.security.PrivateKey serviceKey)
Decrypt the given token (as a java.lang.String with the
given private key. |
java.util.Hashtable |
getAttributeTable()
Returns the list of attributes extracted from the SAMLAttributeStatements in the verified SAML assertion. |
java.util.List |
getCertificates()
|
java.lang.String |
getIssuerName()
|
org.w3c.dom.Element |
getKeyInfoElement()
|
java.security.cert.X509Certificate |
getSigningCert()
|
boolean |
isMultipleValues()
|
void |
setIssuerName(java.lang.String issuer)
|
void |
setMultipleValues(boolean isMultipleValues)
|
boolean |
verifyDecryptedToken(org.w3c.dom.Element decryptedElem,
RelyingPartyData rpData)
This method performs two actions 1) Decrypt the token 2) Verify the token |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SAMLTokenVerifier()
Method Detail |
---|
public org.w3c.dom.Element decryptToken(java.lang.String token, java.security.PrivateKey serviceKey) throws RelyingPartyException
java.lang.String
with the
given private key.
token
- Serialized SAML tokenserviceKey
- Private key to be used for decryption.
RelyingPartyException
public boolean verifyDecryptedToken(org.w3c.dom.Element decryptedElem, RelyingPartyData rpData) throws RelyingPartyException
decryptedElem
- SAML token element
SAMLException
RelyingPartyException
public java.security.cert.X509Certificate getSigningCert()
public java.util.Hashtable getAttributeTable()
java.util.Hashtable
public java.util.List getCertificates()
public org.w3c.dom.Element getKeyInfoElement()
public java.lang.String getIssuerName()
public void setIssuerName(java.lang.String issuer)
public boolean isMultipleValues()
public void setMultipleValues(boolean isMultipleValues)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |