org.apache.axis2.security.trust
Class SimpleTokenStore

java.lang.Object
  extended byorg.apache.axis2.security.trust.SimpleTokenStore
All Implemented Interfaces:
TokenStorage

public class SimpleTokenStore
extends Object
implements TokenStorage

In-memory implementation of the token storage


Constructor Summary
SimpleTokenStore()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTokenStore

public SimpleTokenStore()
Method Detail

add

public void add(Token token)
         throws TrustException
Description copied from interface: TokenStorage
Add the given token to the list.

Specified by:
add in interface TokenStorage
Parameters:
token - The token to be added
Throws:
TrustException

update

public void update(Token token)
            throws TrustException
Description copied from interface: TokenStorage
Update an existing token.

Specified by:
update in interface TokenStorage
Parameters:
token -
Throws:
TrustException

gettokenIdentifiers

public String[] gettokenIdentifiers()
                             throws TrustException
Description copied from interface: TokenStorage
Return the list of all token identifiers.

Specified by:
gettokenIdentifiers in interface TokenStorage
Returns:
Throws:
TrustException

getExpiredTokens

public ArrayList getExpiredTokens()
                           throws TrustException
Description copied from interface: TokenStorage
Return the list of EXPIRED tokens. If there are no EXPIRED tokens null will be returned

Specified by:
getExpiredTokens in interface TokenStorage
Returns:
Throws:
TrustException

getCancelledTokens

public ArrayList getCancelledTokens()
                             throws TrustException
Description copied from interface: TokenStorage
Return the list of CANCELLED tokens

Specified by:
getCancelledTokens in interface TokenStorage
Returns:
Throws:
TrustException

getValidTokens

public ArrayList getValidTokens()
                         throws TrustException
Description copied from interface: TokenStorage
Return the list of ISSUED and RENEWED tokens.

Specified by:
getValidTokens in interface TokenStorage
Returns:
Throws:
TrustException

getRenewedTokens

public ArrayList getRenewedTokens()
                           throws TrustException
Description copied from interface: TokenStorage
Return the list of RENEWED tokens.

Specified by:
getRenewedTokens in interface TokenStorage
Returns:
Throws:
TrustException