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


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.
 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.
 

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