org.neuclear.commons.crypto.passphraseagents
Class AlwaysTheSamePassphraseAgent

java.lang.Object
  extended by org.neuclear.commons.crypto.passphraseagents.AlwaysTheSamePassphraseAgent
All Implemented Interfaces:
PassPhraseAgent

public final class AlwaysTheSamePassphraseAgent
extends java.lang.Object
implements PassPhraseAgent

This agent contains one passphrase which is provided as a passphrase to all aliases. The main purpose of this agent is for use in automated testing. This should never be used for any kind of production server usage. User: pelleb Date: Oct 30, 2003 Time: 5:01:14 PM


Constructor Summary
AlwaysTheSamePassphraseAgent(char[] passphrase)
           
AlwaysTheSamePassphraseAgent(java.lang.String passphrase)
           
 
Method Summary
 char[] getPassPhrase(java.lang.String name)
          Retrieve the PassPhrase for a given name/alias
 char[] getPassPhrase(java.lang.String name, boolean incorrect)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlwaysTheSamePassphraseAgent

public AlwaysTheSamePassphraseAgent(java.lang.String passphrase)

AlwaysTheSamePassphraseAgent

public AlwaysTheSamePassphraseAgent(char[] passphrase)
Method Detail

getPassPhrase

public final char[] getPassPhrase(java.lang.String name)
Description copied from interface: PassPhraseAgent
Retrieve the PassPhrase for a given name/alias

Specified by:
getPassPhrase in interface PassPhraseAgent
Returns:

getPassPhrase

public char[] getPassPhrase(java.lang.String name,
                            boolean incorrect)
                     throws UserCancellationException
Specified by:
getPassPhrase in interface PassPhraseAgent
Throws:
UserCancellationException


Copyright © 2003-2004 Antilles Software Ventures SA. All Rights Reserved.