org.neuclear.commons.crypto.passphraseagents
Class AskAtStartupAgent
java.lang.Object
org.neuclear.commons.crypto.passphraseagents.AskAtStartupAgent
- All Implemented Interfaces:
- PassPhraseAgent
public final class AskAtStartupAgent
- extends java.lang.Object
- implements PassPhraseAgent
AskAtStartupAgent encapsulates another passphraseagent, but caches each request.
It is given an initial argument, which it asks at startup, thus not requiring it to ask the admin
for the passphrase at alls.
|
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 |
AskAtStartupAgent
public AskAtStartupAgent(InteractiveAgent agent,
java.lang.String name)
throws UserCancellationException
- Throws:
UserCancellationException
getPassPhrase
public final char[] getPassPhrase(java.lang.String name)
throws UserCancellationException
- Retrieve the PassPhrase for a given name/alias
- Specified by:
getPassPhrase in interface PassPhraseAgent
- Parameters:
name -
- Returns:
-
- Throws:
UserCancellationException
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.