issrg.saml
Class SAMLParsedToken

java.lang.Object
  extended by issrg.pba.DefaultParsedToken
      extended by issrg.saml.SAMLParsedToken
All Implemented Interfaces:
ParsedToken, WebDAVRevocable

public class SAMLParsedToken
extends DefaultParsedToken
implements WebDAVRevocable

This is the VOMS Parsed Token implementation. It simply contains the Holder, the Issuer and the Credentials of the Holder. In addtion, it contains the boolean noRevAvail to indicate whether certificate revocation is applicable. the default value of noRevAvail is false, which means this token can be revoked.


Constructor Summary
SAMLParsedToken()
          Creates a new instance of VOMSParsedToken
SAMLParsedToken(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
 java.lang.String getCertificateURL()
           
 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 getNoRevAvail()
          This method extracts the boolean noRevAvail.
 byte[] getOriginalAC()
           
 java.lang.String getRevocationURL()
           
 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.
 void setNoRevAvail()
          This method set the boolean noRevAvail to true, which indicates this parsed token would not be checked for revocation.
 
Methods inherited from class issrg.pba.DefaultParsedToken
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SAMLParsedToken

public SAMLParsedToken()
Creates a new instance of VOMSParsedToken


SAMLParsedToken

public SAMLParsedToken(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()
This method extracts the Credentials from the object representing the Authorisation Token.

The result is never null.

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

getHolder

public Entry getHolder()
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
Overrides:
getHolder in class DefaultParsedToken
Returns:
Entry of the Holder, which can be used for finding other tokens and for matching subject domains

getIssuerTokenLocator

public TokenLocator getIssuerTokenLocator()
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
Overrides:
getIssuerTokenLocator in class DefaultParsedToken

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
Specified by:
isRevocable in interface WebDAVRevocable
Overrides:
isRevocable in class DefaultParsedToken
Returns:
a boolen identifying the parsed token as revocable. May be used by the RevocationChecker.

getOriginalAC

public byte[] getOriginalAC()
Specified by:
getOriginalAC in interface WebDAVRevocable

getCertificateURL

public java.lang.String getCertificateURL()
Specified by:
getCertificateURL in interface WebDAVRevocable

getRevocationURL

public java.lang.String getRevocationURL()
Specified by:
getRevocationURL in interface WebDAVRevocable

getNoRevAvail

public boolean getNoRevAvail()
This method extracts the boolean noRevAvail.


setNoRevAvail

public void setNoRevAvail()
This method set the boolean noRevAvail to true, which indicates this parsed token would not be checked for revocation.