public final class PublicKeyCallback extends Object implements Callback
Constructor and Description |
---|
PublicKeyCallback(String prompt,
PublicKey publicKey,
String[] algorithmNames)
Construct a new instance.
|
PublicKeyCallback(String prompt,
String[] algorithmNames)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allows(String name)
Convenience method to determine whether an algorithm name is allowed.
|
String[] |
getAlgorithmNames()
Get the acceptable algorithm names.
|
String |
getPrompt()
Get the prompt string.
|
PublicKey |
getPublicKey()
Get the public key.
|
void |
setPublicKey(PublicKey publicKey)
Set the public key.
|
public PublicKeyCallback(String prompt, String[] algorithmNames)
prompt
- the prompt stringalgorithmNames
- the algorithm names to acceptpublic String getPrompt()
public PublicKey getPublicKey()
public void setPublicKey(PublicKey publicKey)
publicKey
- the public keypublic String[] getAlgorithmNames()
public boolean allows(String name)
name
- the algorithm nametrue
if the algorithm is allowedCopyright © 2012 JBoss by Red Hat. All Rights Reserved.