net.cnri.dobj
Class AbstractAuthentication

java.lang.Object
  extended by net.cnri.dobj.AbstractAuthentication
All Implemented Interfaces:
DOAuthentication
Direct Known Subclasses:
PKAuthentication, ProxiedAuthentication, SecretKeyAuthentication

public abstract class AbstractAuthentication
extends java.lang.Object
implements DOAuthentication

Provides a partial implementation of the DOAuthentication interface that helps Interface for objects that can be used to authenticate themselves to the other side of a DOConnection link.


Constructor Summary
AbstractAuthentication()
           
 
Method Summary
abstract  AbstractAuthentication cloneAuthentication()
          The following must be implemented by subclasses of AbstractAuthentication in order to provide a copy of themselves for the purposes of authenticating when retrieving their credentials.
static DOAuthentication getAnonymousAuth()
           
 java.security.cert.Certificate[] getCredentials()
          Retrieve the credentials from this user's digital object so that they can be presented to any servers during authentication.
 void setAutoRetrieveCredentials(boolean autoRetrieve)
          Sets whether or not this object will automatically retrieve the client's credentials from the client DO when getCredentials() is called.
 void setCredentials(java.security.cert.Certificate[] credentials)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.cnri.dobj.DOAuthentication
getID, signChallenge, toHandleAuth
 

Constructor Detail

AbstractAuthentication

public AbstractAuthentication()
Method Detail

setAutoRetrieveCredentials

public void setAutoRetrieveCredentials(boolean autoRetrieve)
Sets whether or not this object will automatically retrieve the client's credentials from the client DO when getCredentials() is called. If true, the credentials will also be refreshed if the credentials were last retrieved over an hour before the present time.


cloneAuthentication

public abstract AbstractAuthentication cloneAuthentication()
The following must be implemented by subclasses of AbstractAuthentication in order to provide a copy of themselves for the purposes of authenticating when retrieving their credentials. The returned object will have the autoRetrieveCredentials option turned off when retrieving the credentials in order to avoid a recursive loop when authenticating with the server that holds the credentials.


setCredentials

public void setCredentials(java.security.cert.Certificate[] credentials)

getCredentials

public java.security.cert.Certificate[] getCredentials()
Retrieve the credentials from this user's digital object so that they can be presented to any servers during authentication.

Specified by:
getCredentials in interface DOAuthentication

getAnonymousAuth

public static final DOAuthentication getAnonymousAuth()