SAMLCredentialpublic class SAMLCredentialImpl extends java.lang.Object implements SAMLCredential
User: sychang Date: Jul 19, 2006 Time: 2:36:12 PM
| Modifier | Constructor | Description |
|---|---|---|
protected |
SAMLCredentialImpl() |
Deprecated.
|
|
SAMLCredentialImpl(java.lang.String tokenType,
java.lang.Object cred) |
Deprecated.
create a new SAML 20 credential with the SAML 2.0 assertion
|
|
SAMLCredentialImpl(java.lang.String tokenType,
java.lang.Object cred,
java.security.PrivateKey privateKey) |
Deprecated.
create a new saml credential with private key of the saml requester
|
|
SAMLCredentialImpl(org.w3c.dom.Node node) |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getAssertionID() |
Deprecated.
AssertionID of SAML Assertion
|
SAMLAttributeStatementData |
getAttributes() |
Deprecated.
Get the SAMLAttributeStatemnetInfo or SAML2AttributeStatemnetInfo from the SAML Token
|
java.lang.Object |
getCredential() |
Deprecated.
get the credential object
|
org.w3c.dom.Element |
getEncryptedKey() |
Deprecated.
get the EncryptedKey object
|
EncryptedKeyProvider |
getEncryptedKeyProvider() |
Deprecated.
get EncryptedKeyProvider object
|
java.security.Key |
getHolderOfKey() |
Deprecated.
return sender's key for holder-of-key
|
java.security.PrivateKey |
getPrivateKey() |
Deprecated.
get the private key
|
SecurityTokenReference |
getSecurityTokenReference() |
Deprecated.
|
java.security.Key |
getSymmetircKey() |
Deprecated.
return symmetric key for holder-of-key
|
java.lang.String |
getTokenType() |
Deprecated.
This method will return TokenType Attribute Value base on the SAML Token as following:
V1.1
http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1
V2.0 http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0
|
java.lang.String |
getVersion() |
Deprecated.
|
java.security.cert.X509Certificate |
getX509Cert() |
Deprecated.
get the X509 Certificate in this SAML Token.
|
boolean |
isHolderOfKey() |
Deprecated.
check is this credential use HoK confirmation
|
boolean |
isSaml2() |
Deprecated.
|
void |
setAttributes(SAMLAttributeStatementData attributes) |
Deprecated.
Save the SAML Attributes into this SAML Token
|
void |
setCredential(java.lang.Object credential) |
Deprecated.
set the credential object
|
void |
setEncryptedKeyProvider(EncryptedKeyProvider encryptedKeyProvider) |
Deprecated.
set EncryptedKeyProvider object
|
void |
setPrivateKey(java.security.PrivateKey privateKey) |
Deprecated.
set the private key
|
void |
setSymmetircKey(java.security.Key symmetircKey) |
Deprecated.
set symmetric key for holder-of-key
|
void |
setTokenType(java.lang.String tokenType) |
Deprecated.
|
void |
verbose() |
Deprecated.
|
protected SAMLCredentialImpl()
throws WSSecurityException
WSSecurityExceptionpublic SAMLCredentialImpl(org.w3c.dom.Node node)
throws WSSecurityException
WSSecurityExceptionpublic SAMLCredentialImpl(java.lang.String tokenType,
java.lang.Object cred)
throws WSSecurityException
cred - saml assertion nodeWSSecurityExceptionpublic SAMLCredentialImpl(java.lang.String tokenType,
java.lang.Object cred,
java.security.PrivateKey privateKey)
throws WSSecurityException
privateKey - private key of thecred - holder-of-key of saml assertion that contains the saml requester's public keyWSSecurityExceptionpublic void verbose()
public SAMLAttributeStatementData getAttributes()
getAttributes in interface SAMLCredentialpublic void setAttributes(SAMLAttributeStatementData attributes)
setAttributes in interface SAMLCredentialattributes - SAMLAttributeStatementData object to be savedpublic java.lang.String getVersion()
getVersion in interface SAMLCredentialpublic boolean isSaml2()
isSaml2 in interface SAMLCredentialpublic java.lang.String getAssertionID()
getAssertionID in interface SAMLCredentialpublic java.lang.String getTokenType()
http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1
http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0
Null will be reutrned for SAML Token Profile 1.0 type of Token. as there is no Token Type for SAML Token Profile 1.0.
getTokenType in interface SAMLCredentialpublic void setTokenType(java.lang.String tokenType)
public void setCredential(java.lang.Object credential)
setCredential in interface SAMLCredentialcredential - SAML assertion node to setpublic java.lang.Object getCredential()
getCredential in interface SAMLCredentialpublic void setPrivateKey(java.security.PrivateKey privateKey)
setPrivateKey in interface SAMLCredentialprivateKey - private key to setpublic java.security.PrivateKey getPrivateKey()
getPrivateKey in interface SAMLCredentialpublic boolean isHolderOfKey()
isHolderOfKey in interface SAMLCredentialpublic java.security.Key getHolderOfKey()
getHolderOfKey in interface SAMLCredentialpublic java.security.Key getSymmetircKey()
getSymmetircKey in interface SAMLCredentialpublic void setSymmetircKey(java.security.Key symmetircKey)
setSymmetircKey in interface SAMLCredentialsymmetircKey - the symmetric key for holder-of-keypublic org.w3c.dom.Element getEncryptedKey()
getEncryptedKey in interface SAMLCredentialpublic EncryptedKeyProvider getEncryptedKeyProvider()
getEncryptedKeyProvider in interface SAMLCredentialpublic void setEncryptedKeyProvider(EncryptedKeyProvider encryptedKeyProvider)
setEncryptedKeyProvider in interface SAMLCredentialencryptedKeyProvider - EncryptedKeyProvider object to be setpublic java.security.cert.X509Certificate getX509Cert()
getX509Cert in interface SAMLCredentialpublic SecurityTokenReference getSecurityTokenReference()