public interface SAMLToken extends GenericSecurityToken
SecurityToken
,
GenericSecurityToken
Modifier and Type | Field and Description |
---|---|
static java.security.SecurityPermission |
GET_SAMLATTRIBUTES_PERM
this is the java2 security permission needed to retrieve attributes
from a SAML token.
|
DECRYPTING_KEY, ENCRYPTING_KEY, REF_EMBEDDED, REF_KEYID, REF_STR, REF_THUMBPRINT, SIGNING_KEY, TokenQname, ValueType, VERIFING_KEY
Modifier and Type | Method and Description |
---|---|
void |
addSAMLAttribute(java.util.List<com.ibm.wsspi.wssecurity.saml.data.SAMLAttribute> attrList)
Adds a list of SAMLAttributes to the SAML token.
|
void |
addSAMLAttribute(com.ibm.wsspi.wssecurity.saml.data.SAMLAttribute attr)
Adds a SAMLAttribute to the SAML token.
|
void |
deleteSAMLAttribute(com.ibm.wsspi.wssecurity.saml.data.SAMLAttribute attr)
Delete a SAMLAttribute that matches the input from a SAML token.
|
javax.xml.namespace.QName |
getAssertionQName()
Return SAML Assertion namespace, defined in a schema SAML-XSD.
|
java.util.List<java.lang.String> |
getAudienceRestriction()
Retrieves AudienceRestriction String name list.
|
java.util.Date |
getAuthenticationInstant()
Retrieves the authentication time when the token holder is authenticated.
|
java.lang.String |
getAuthenticationMethod()
Retrieves the authentication method that was used to authenticate the token holder.
|
java.lang.String |
getConfirmationMethod()
Retrieves the Subject Confirmation Method used in this SAML token.
|
byte[] |
getHolderOfKeyBytes()
Retrieves the key bytes from the Holder-of-Key Element of this SAML token.
|
long |
getProxyRestrictionCount()
Retrieves number of ProxyRestriction Count.
|
java.util.List<java.lang.String> |
getroxyRestrictionAudience()
Retrieves String list of ProxyRestriction Audience.
|
java.util.List<com.ibm.wsspi.wssecurity.saml.data.SAMLAttribute> |
getSAMLAttributes()
Retrieves the list of all attributes contained in the SAML token.
|
java.util.Date |
getSamlCreated()
Retrieves the SAML assertion creation date.
|
java.util.Date |
getSamlExpires()
Return SAML Expiration time.
|
java.lang.String |
getSamlID()
Retrieves the identifier associated with this SAML assertion.
|
java.lang.String |
getSAMLIssuerFormat()
Retrieves the format of the issuer element for SAML 2.0 assertions.
|
java.lang.String |
getSAMLIssuerName()
Retrieves the name of issuer.
|
com.ibm.wsspi.wssecurity.saml.data.SAMLNameID |
getSAMLNameID()
Retrieves SAML NameId or NameIdentifier assertion associated with the token holder.
|
java.security.cert.X509Certificate |
getSignerCertificate()
Retrieves SAML signer's X.509 Certificate
|
java.util.Map<java.lang.String,java.lang.String> |
getStringAttributes()
Retrieves a Map of SAML attributes that consist of single (key, string value) pairs only.
|
java.lang.String |
getSubjectDNS()
Retrieves DNSAddress in SubjectLocality.
|
java.lang.String |
getSubjectIPAddress()
Retrieves IPAddress in SubjectLocality.
|
java.io.InputStream |
getXMLInputStream()
Retrieves InputSream form of SAML Assertion.
|
boolean |
hasProxyRestriction()
Retrieves flag to indicate ProxyRestriction.
|
boolean |
isOneTimeUse()
Retrieves flag to indicate OneTimeUse or DoNotCacheCondition.
|
boolean |
isReadOnly()
Retrieves readOnly flag.
|
void |
setTokenReadOnly()
sets the SAMLToken to read only mode, meaning when we get any kind of SAMLAtributes,
we return only copies instead of direct references.
|
getProperties, setValueType
getId, getKey, getKeyIdentifier, getKeyIdentifierEncodingType, getKeyIdentifierValueType, getKeyName, getPrincipal, getReferenceURI, getThumbprint, getThumbprintEncodingType, getThumbprintValueType, getTokenQname, getValueType, getXML
static final java.security.SecurityPermission GET_SAMLATTRIBUTES_PERM
java.lang.String getSamlID()
javax.xml.namespace.QName getAssertionQName()
java.util.Date getSamlExpires()
java.util.Date getSamlCreated()
java.lang.String getConfirmationMethod()
byte[] getHolderOfKeyBytes()
java.lang.String getSAMLIssuerName()
java.lang.String getSAMLIssuerFormat()
java.lang.String getAuthenticationMethod()
java.util.Date getAuthenticationInstant()
java.lang.String getSubjectDNS()
java.lang.String getSubjectIPAddress()
java.util.List<java.lang.String> getAudienceRestriction()
boolean isOneTimeUse()
boolean hasProxyRestriction()
long getProxyRestrictionCount()
java.util.List<java.lang.String> getroxyRestrictionAudience()
java.util.List<com.ibm.wsspi.wssecurity.saml.data.SAMLAttribute> getSAMLAttributes()
java.util.Map<java.lang.String,java.lang.String> getStringAttributes()
com.ibm.wsspi.wssecurity.saml.data.SAMLNameID getSAMLNameID()
void setTokenReadOnly()
boolean isReadOnly()
java.io.InputStream getXMLInputStream() throws WSSException
WSSException
java.security.cert.X509Certificate getSignerCertificate()
void addSAMLAttribute(com.ibm.wsspi.wssecurity.saml.data.SAMLAttribute attr) throws java.lang.Exception
SAMLTokenFactory.newSAMLToken(SAMLToken, RequesterConfig, ProviderConfig)
.
attr
- is the SAMLAttribute
to add to the tokenjava.lang.Exception
void addSAMLAttribute(java.util.List<com.ibm.wsspi.wssecurity.saml.data.SAMLAttribute> attrList) throws java.lang.Exception
SAMLTokenFactory.newSAMLToken(SAMLToken, RequesterConfig, ProviderConfig)
.
attrList
- is the List of SAMLAttribute
s to add to the tokenjava.lang.Exception
void deleteSAMLAttribute(com.ibm.wsspi.wssecurity.saml.data.SAMLAttribute attr) throws java.lang.Exception
SAMLTokenFactory.newSAMLToken(SAMLToken, RequesterConfig, ProviderConfig)
.
attr
- is the SAMLAttribute to delete from the tokenjava.lang.Exception