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

Method Index

 o bytes()
Returns a copy of the random bytes associated with this challenge.
 o equals(Object)
Tests for equality of Challenges.
 o issueResponse(PrivateKey)
Uses the PrivateKey to sign this challenge and returns a new Response which contains the signed version of this challenge.
 o user()
Returns the name of the user associated with this challenge.
 o verifyResponse(Response, PublicKey)
Uses the PublicKey to verify that the Response is a signed version of this challenge.

Methods

 o bytes
 public abstract byte[] bytes()
Returns a copy of the random bytes associated with this challenge.

 o user
 public abstract String user()
Returns the name of the user associated with this challenge.

 o equals
 public abstract boolean equals(Object other)
Tests for equality of Challenges.

Overrides:
equals in class Object
 o 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.
 o 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