net.cnri.dobj
Class ProxiedAuthentication

java.lang.Object
  extended by net.cnri.dobj.AbstractAuthentication
      extended by net.cnri.dobj.ProxiedAuthentication
All Implemented Interfaces:
DOAuthentication

public class ProxiedAuthentication
extends AbstractAuthentication


Constructor Summary
ProxiedAuthentication(java.lang.String clientID, DOConnection conn)
           
 
Method Summary
 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.
 java.security.cert.Certificate[] getCredentials()
          Returns an empty list since the proxied authentication returns a list of credentials in the signChallenge() method.
 java.lang.String getID()
          Returns the identifier of the entity whose authentication is being proxied
 void signChallenge(HeaderSet challenge, HeaderSet response)
          Signs the given challenge message and puts the result (including any required parameters) into the given HeaderSet object.
 net.handle.hdllib.AuthenticationInfo toHandleAuth()
          Returns this authentication in a form that will work with handle system administration.
 
Methods inherited from class net.cnri.dobj.AbstractAuthentication
getAnonymousAuth, setAutoRetrieveCredentials, setCredentials
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxiedAuthentication

public ProxiedAuthentication(java.lang.String clientID,
                             DOConnection conn)
Method Detail

getID

public java.lang.String getID()
Returns the identifier of the entity whose authentication is being proxied


signChallenge

public void signChallenge(HeaderSet challenge,
                          HeaderSet response)
                   throws java.lang.Exception
Signs the given challenge message and puts the result (including any required parameters) into the given HeaderSet object.

Throws:
java.lang.Exception

getCredentials

public java.security.cert.Certificate[] getCredentials()
Returns an empty list since the proxied authentication returns a list of credentials in the signChallenge() method.

Specified by:
getCredentials in interface DOAuthentication
Overrides:
getCredentials in class AbstractAuthentication

toHandleAuth

public net.handle.hdllib.AuthenticationInfo toHandleAuth()
Returns this authentication in a form that will work with handle system administration.


cloneAuthentication

public 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.

Specified by:
cloneAuthentication in class AbstractAuthentication