|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.cnri.dobj.AbstractAuthentication
net.cnri.dobj.SecretKeyAuthentication
public class SecretKeyAuthentication
A PKAuthentication object uses a secret key to prove our identity. The certificate credentials are handled as part of the AbstractAuthentication parent class.
Constructor Summary | |
---|---|
SecretKeyAuthentication(java.lang.String myID,
byte[] secretKey)
Construct an authentication object that uses the given private key to prove that we are the entity identified by myID. |
Method Summary | |
---|---|
net.cnri.dobj.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()
Retrieve the credentials from this user's digital object so that they can be presented to any servers during authentication. |
java.lang.String |
getID()
Returns the identifier representing the entity that is supposed to be authenticated by this object. |
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. |
java.lang.String |
toString()
|
Methods inherited from class net.cnri.dobj.AbstractAuthentication |
---|
getAnonymousAuth, setAutoRetrieveCredentials |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SecretKeyAuthentication(java.lang.String myID, byte[] secretKey)
Method Detail |
---|
public net.cnri.dobj.AbstractAuthentication cloneAuthentication()
cloneAuthentication
in class net.cnri.dobj.AbstractAuthentication
public java.lang.String getID()
DOAuthentication.getID()
public void signChallenge(net.cnri.dobj.HeaderSet challenge, net.cnri.dobj.HeaderSet response) throws java.lang.Exception
DOAuthentication
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
public java.security.cert.Certificate[] getCredentials()
getCredentials
in interface DOAuthentication
getCredentials
in class net.cnri.dobj.AbstractAuthentication
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |