issrg.pba
Class DefaultParsedToken

java.lang.Object
  extended byissrg.pba.DefaultParsedToken
All Implemented Interfaces:
ParsedToken
Direct Known Subclasses:
DefaultDelegatableToken

public class DefaultParsedToken
extends java.lang.Object
implements ParsedToken

This is the default Parsed Token implementation. It simply contains the Holder, the Issuer and the Credentials of the Holder.


Constructor Summary
protected DefaultParsedToken()
           
  DefaultParsedToken(Entry holder, TokenLocator issuer, Credentials creds)
          This is the constructor that builds the Default Parsed Token given the Holder, the Issuer and the Credentials of the Holder issued to him by the Issuer.
 
Method Summary
 Credentials getCredentials()
          This method extracts the Credentials from the object representing the Authorisation Token.
 Entry getHolder()
          This method extracts the Holder's Entry from the Authorisation Token.
 TokenLocator getIssuerTokenLocator()
          This method extracts the Issuer's Token Locator from the Authorisation token.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultParsedToken

protected DefaultParsedToken()

DefaultParsedToken

public DefaultParsedToken(Entry holder,
                          TokenLocator issuer,
                          Credentials creds)
This is the constructor that builds the Default Parsed Token given the Holder, the Issuer and the Credentials of the Holder issued to him by the Issuer.

Parameters:
holder - - the Holder entry
issuer - - the Issuer entry
creds - - the Credentials of the Holder
Method Detail

getCredentials

public Credentials getCredentials()
Description copied from interface: ParsedToken
This method extracts the Credentials from the object representing the Authorisation Token.

The result is never null.

Specified by:
getCredentials in interface ParsedToken
Returns:
Credentials is the Credentials that the Authorisation Token contains

getHolder

public Entry getHolder()
Description copied from interface: ParsedToken
This method extracts the Holder's Entry from the Authorisation Token. The returned object can be used to perform subject domain matching and location of the holder's authorisation tokens.

Specified by:
getHolder in interface ParsedToken
Returns:
Entry of the Holder, which can be used for finding other tokens and for matching subject domains

getIssuerTokenLocator

public TokenLocator getIssuerTokenLocator()
Description copied from interface: ParsedToken
This method extracts the Issuer's Token Locator from the Authorisation token. This information may not be available in the Authorisation token, but the implementation should return at least a TokenLocator that returns the Entry. This is needed to perform matching of the issuer name.

Specified by:
getIssuerTokenLocator in interface ParsedToken

toString

public java.lang.String toString()