public interface SecurityTokenManager
Modifier and Type | Method and Description |
---|---|
void |
addToken(com.ibm.websphere.wssecurity.wssapi.token.SecurityToken token)
Adds the specified
SecurityToken object into the current
Subject . |
void |
addTokens(java.util.Collection<com.ibm.websphere.wssecurity.wssapi.token.SecurityToken> tokens)
Adds a list of
SecurityToken objects into the current subject. |
com.ibm.websphere.wssecurity.wssapi.token.SecurityToken |
getToken(java.lang.String id)
Returns the
SecurityToken from the current subject
with the specified identifier. |
com.ibm.websphere.wssecurity.wssapi.token.SecurityToken |
getToken(TokenConsumerConfig tconfig,
java.lang.String id)
Gets the
SecurityToken from the Subject in this
context with specified identifier. |
java.util.Collection<com.ibm.websphere.wssecurity.wssapi.token.SecurityToken> |
getTokens()
Gets a set of
SecurityToken objects stored in the current
subject. |
java.util.Collection<com.ibm.websphere.wssecurity.wssapi.token.SecurityToken> |
getTokens(java.lang.String id)
Returns the
SecurityToken objects from the Subject
in this context with specified identifier. |
java.util.Collection<com.ibm.websphere.wssecurity.wssapi.token.SecurityToken> |
getTokens(TokenConsumerConfig tconfig)
Gets the
SecurityToken that is processed by the specified
TokenConsumerConfig object. |
java.util.Collection<com.ibm.websphere.wssecurity.wssapi.token.SecurityToken> |
getTokens(TokenGeneratorConfig tconfig)
Gets the
SecurityToken that is processed by the specified
TokenGeneratorConfig object. |
java.util.Collection<com.ibm.websphere.wssecurity.wssapi.token.SecurityToken> |
getTokens(TokenGeneratorConfig tconfig,
java.lang.String keyInfoType)
Gets the
SecurityToken that is processed by the specified
TokenGeneratorConfig object and is referenced by the specified
type. |
java.util.Collection<com.ibm.websphere.wssecurity.wssapi.token.SecurityToken> |
getTokensByKeyInfo(java.lang.String keyInfoName)
Returns the
SecurityToken from the current subject
with the specified keyInfoName. |
void |
removeAllTokens()
Removes all
SecurityToken objects from the current subject. |
void |
removeToken(com.ibm.websphere.wssecurity.wssapi.token.SecurityToken token)
Removes the specified
SecurityToken object from the current
subject. |
void |
removeTokens(java.util.Collection<com.ibm.websphere.wssecurity.wssapi.token.SecurityToken> tokens)
Removes all specified
SecurityToken objects from the current
subject. |
void addToken(com.ibm.websphere.wssecurity.wssapi.token.SecurityToken token)
SecurityToken
object into the current
Subject
.token
- the SecurityToken
objectcom.ibm.websphere.wssecurity.wssapi.token.SecurityToken getToken(TokenConsumerConfig tconfig, java.lang.String id)
SecurityToken
from the Subject
in this
context with specified identifier. If there is no token with the
identifier, returns null.tconfig
- The configuration of token consumerid
- An identifier for a desired token.SecurityToken
object with a given id.
If no match occurred, returns null.com.ibm.websphere.wssecurity.wssapi.token.SecurityToken getToken(java.lang.String id)
SecurityToken
from the current subject
with the specified identifier. If there is no token with the identifier,
returns null.id
- The identifier of the tokenSecurityToken
object that matches with the
given identifier. If no match occurred, retuns null.java.util.Collection<com.ibm.websphere.wssecurity.wssapi.token.SecurityToken> getTokensByKeyInfo(java.lang.String keyInfoName)
SecurityToken
from the current subject
with the specified keyInfoName. If there is no token with the keyInfoName,
returns null.keyInfoName
- The identifier of the keyInfoSecurityToken
object that matches with the
given keyInfoName. If no match occurred, retuns null.void addTokens(java.util.Collection<com.ibm.websphere.wssecurity.wssapi.token.SecurityToken> tokens)
SecurityToken
objects into the current subject.tokens
- a list of SecurityToken
objectsjava.util.Collection<com.ibm.websphere.wssecurity.wssapi.token.SecurityToken> getTokens()
SecurityToken
objects stored in the current
subject.SecurityToken
objects.java.util.Collection<com.ibm.websphere.wssecurity.wssapi.token.SecurityToken> getTokens(TokenGeneratorConfig tconfig)
SecurityToken
that is processed by the specified
TokenGeneratorConfig
object. If there is no token, returns null.tconfig
- The configuration of token generatorSecurityToken
object with a given id.
If no match occurred, returns null.java.util.Collection<com.ibm.websphere.wssecurity.wssapi.token.SecurityToken> getTokens(TokenGeneratorConfig tconfig, java.lang.String keyInfoType)
SecurityToken
that is processed by the specified
TokenGeneratorConfig
object and is referenced by the specified
type. If there is no token, returns null.tconfig
- The configuration of token generatorkeyInfoType
- The type of key informationSecurityToken
object with a given id.
If no match occurred, returns null.java.util.Collection<com.ibm.websphere.wssecurity.wssapi.token.SecurityToken> getTokens(TokenConsumerConfig tconfig)
SecurityToken
that is processed by the specified
TokenConsumerConfig
object. If there is no token, returns null.tconfig
- The configuration of token consumerSecurityToken
object with a given id.
If no match occurred, returns null.java.util.Collection<com.ibm.websphere.wssecurity.wssapi.token.SecurityToken> getTokens(java.lang.String id)
SecurityToken
objects from the Subject
in this context with specified identifier. If there is no token with
the identifier, returns null.id
- The identifier of the tokenSecurityToken
objects with a given id. If no match
occurred, returns null.void removeToken(com.ibm.websphere.wssecurity.wssapi.token.SecurityToken token)
SecurityToken
object from the current
subject.token
- The SecurityToken
object to be removedvoid removeTokens(java.util.Collection<com.ibm.websphere.wssecurity.wssapi.token.SecurityToken> tokens)
SecurityToken
objects from the current
subject.tokens
- A list of SecurityToken
objects to be removedvoid removeAllTokens()
SecurityToken
objects from the current subject.