All Packages Class Hierarchy This Package Previous Next Index
Interface jnfs.security.Challenge
- public interface interface Challenge
- extends Serializable
A challenge is something that is responded to with a signed version
of a challenge. This could be more general, but we've got other
priorities right now.
- Version:
- $Id: Challenge.java,v 1.7 1997/05/20 19:16:20 mjr Exp $
- Author:
- Michael John Radwin
-
bytes()
- Returns a copy of the random bytes associated with this challenge.
-
equals(Object)
- Tests for equality of Challenges.
-
issueResponse(PrivateKey)
- Uses the
PrivateKey
to sign this challenge and returns
a new Response
which contains the signed version of
this challenge.
-
user()
- Returns the name of the user associated with this challenge.
-
verifyResponse(Response, PublicKey)
- Uses the
PublicKey
to verify that the
Response
is a signed version of this challenge.
bytes
public abstract byte[] bytes()
- Returns a copy of the random bytes associated with this challenge.
user
public abstract String user()
- Returns the name of the user associated with this challenge.
equals
public abstract boolean equals(Object other)
- Tests for equality of Challenges.
- Overrides:
- equals in class Object
issueResponse
public abstract Response issueResponse(PrivateKey privkey) throws InvalidKeyException
- Uses the
PrivateKey
to sign this challenge and returns
a new Response
which contains the signed version of
this challenge. Typically called by the client.
- Throws: InvalidKeyException
- if the key is invalid.
verifyResponse
public abstract boolean verifyResponse(Response credentials,
PublicKey pubkey) throws InvalidKeyException
- Uses the
PublicKey
to verify that the
Response
is a signed version of this challenge.
Typically called by the server.
- Throws: InvalidKeyException
- if the key is invalid.
All Packages Class Hierarchy This Package Previous Next Index