net.cnri.dobj
Interface DOAuthentication

All Known Implementing Classes:
net.cnri.dobj.AbstractAuthentication, PKAuthentication, SecretKeyAuthentication

public interface DOAuthentication

Interface for objects that can be used to authenticate themselves to the other side of a DOConnection link.


Method Summary
 java.security.cert.Certificate[] getCredentials()
          Returns any certificates that supplement this entities authentication
 java.lang.String getID()
          Returns the identifier of the calling code.
 void signChallenge(net.cnri.dobj.HeaderSet challenge, net.cnri.dobj.HeaderSet response)
          Signs the given challenge message and puts the result (including any required parameters) into the given HeaderSet object.
 

Method Detail

getID

java.lang.String getID()
Returns the identifier of the calling code.


signChallenge

void signChallenge(net.cnri.dobj.HeaderSet challenge,
                   net.cnri.dobj.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

java.security.cert.Certificate[] getCredentials()
Returns any certificates that supplement this entities authentication