org.apache.axis2.security.trust
Interface TokenStorage

All Known Implementing Classes:
SimpleTokenStore

public interface TokenStorage

The storage interface to store security tokens and manipulate them


Field Summary
static String TOKEN_STORAGE_KEY
           
 
Method Summary
 void add(Token token)
          Add the given token to the list.
 ArrayList getCancelledTokens()
          Return the list of CANCELLED tokens
 ArrayList getExpiredTokens()
          Return the list of EXPIRED tokens.
 ArrayList getRenewedTokens()
          Return the list of RENEWED tokens.
 Token getToken(String id)
          Returns the Token of the given id
 String[] gettokenIdentifiers()
          Return the list of all token identifiers.
 ArrayList getValidTokens()
          Return the list of ISSUED and RENEWED tokens.
 void update(Token token)
          Update an existing token.
 

Field Detail

TOKEN_STORAGE_KEY

public static final String TOKEN_STORAGE_KEY
See Also:
Constant Field Values
Method Detail

add

public void add(Token token)
         throws TrustException
Add the given token to the list.

Parameters:
token - The token to be added
Throws:
TrustException

update

public void update(Token token)
            throws TrustException
Update an existing token.

Parameters:
token -
Throws:
TrustException

gettokenIdentifiers

public String[] gettokenIdentifiers()
                             throws TrustException
Return the list of all token identifiers.

Returns:
Throws:
TrustException

getExpiredTokens

public ArrayList getExpiredTokens()
                           throws TrustException
Return the list of EXPIRED tokens. If there are no EXPIRED tokens null will be returned

Returns:
Throws:
TrustException

getValidTokens

public ArrayList getValidTokens()
                         throws TrustException
Return the list of ISSUED and RENEWED tokens.

Returns:
Throws:
TrustException

getRenewedTokens

public ArrayList getRenewedTokens()
                           throws TrustException
Return the list of RENEWED tokens.

Returns:
Throws:
TrustException

getCancelledTokens

public ArrayList getCancelledTokens()
                             throws TrustException
Return the list of CANCELLED tokens

Returns:
Throws:
TrustException

getToken

public Token getToken(String id)
               throws TrustException
Returns the Token of the given id

Parameters:
id -
Returns:
Throws:
TrustException