All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.sun.server.realm.PassphraseAuth

public interface PassphraseAuth
This interface is supported by entities which support a simple authentication protocol: present a plaintext passphrase or password, and get back a boolean value indicating whether or not it was accepted.

This protocol can be supported by systems storing such passphrases, as well as by systems which only store an encrypted version. The common requirement is that the passphrase itself must be presented to the system component doing the authentication. This usually means sending passphrases over the network, with minimal protection unless some secure channel protocol such as SSL is used to protect that data.


Method Index

 o authenticate(String)
Authenticates the entity using the passphrase.

Methods

 o authenticate
 public abstract boolean authenticate(String passphrase) throws NoSuchUserException, NoAuthenticationException
Authenticates the entity using the passphrase.

Returns:
true iff the passphrase is valid
Throws: NoSuchUserException
if the user no longer exists
Throws: NoAuthenticationException
if authentication on this account has been disabled.

All Packages  Class Hierarchy  This Package  Previous  Next  Index