public class SecretKeyAuthentication extends AbstractAuthentication
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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(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.
|
java.lang.String |
toString() |
getAnonymousAuth, setAutoRetrieveCredentials, setCredentialspublic SecretKeyAuthentication(java.lang.String myID,
byte[] secretKey)
public net.handle.hdllib.AuthenticationInfo toHandleAuth()
public AbstractAuthentication cloneAuthentication()
cloneAuthentication in class AbstractAuthenticationpublic java.lang.String getID()
DOAuthentication.getID()public void signChallenge(HeaderSet challenge, HeaderSet response) throws java.lang.Exception
DOAuthenticationjava.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.security.cert.Certificate[] getCredentials()
getCredentials in interface DOAuthenticationgetCredentials in class AbstractAuthentication