issrg.pba
Class DefaultParsedToken

java.lang.Object
  extended by issrg.pba.DefaultParsedToken
All Implemented Interfaces:
ParsedToken
Direct Known Subclasses:
DefaultDelegatableToken, SAMLParsedToken, WebDAVRevocableParsedToken

public class DefaultParsedToken
extends java.lang.Object
implements ParsedToken

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


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.
  DefaultParsedToken(Entry holder, TokenLocator issuer, Credentials creds, boolean revocable)
           
 
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.
 boolean isRevocable()
          This method will return a boolean identifying the token as revocable or not A token can be not-revocable if the AC contain the noRevAvail extension defined in X.509 or if it is a short-lived SAML assertion or Shibboleth credential.
 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
revLoc - - the location of the revoked certificate

DefaultParsedToken

public DefaultParsedToken(Entry holder,
                          TokenLocator issuer,
                          Credentials creds,
                          boolean revocable)
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()
Overrides:
toString in class java.lang.Object

isRevocable

public boolean isRevocable()
Description copied from interface: ParsedToken
This method will return a boolean identifying the token as revocable or not A token can be not-revocable if the AC contain the noRevAvail extension defined in X.509 or if it is a short-lived SAML assertion or Shibboleth credential.

Specified by:
isRevocable in interface ParsedToken
Returns:
a boolen identifying the parsed token as revocable. May be used by the RevocationChecker.