|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.solutions.identity.relyingparty.TokenVerifier
public class TokenVerifier
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 | |
|---|---|
TokenVerifier()
|
|
| 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()
|
void |
setIssuerName(java.lang.String issuer)
|
boolean |
verifyDecryptedToken(org.w3c.dom.Element decryptedElem)
Verify the signature of a given SAML token (decrypted) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TokenVerifier()
| 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)
throws RelyingPartyException
decryptedElem - SAML token element
org.opensaml.SAMLException
RelyingPartyExceptionpublic java.util.Hashtable getAttributeTable()
java.util.Hashtablepublic java.util.List getCertificates()
public org.w3c.dom.Element getKeyInfoElement()
public java.lang.String getIssuerName()
public void setIssuerName(java.lang.String issuer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||