public class DigestHashCallback extends Object implements Callback
Constructor and Description |
---|
DigestHashCallback(String prompt)
Construct the DigestHashCallback with the supplied prompt.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getHash()
Get the hash that has been set on this Callback.
|
String |
getHexHash()
Get the hex encoded form of the hash set on this Callback.
|
void |
setHash(byte[] hash)
Sets the raw byte[] hash.
|
void |
setHexHash(String hexHash)
Sets the hex encoded form of a hash.
|
public DigestHashCallback(String prompt)
prompt
- - the prompt.public byte[] getHash()
public String getHexHash()
public void setHash(byte[] hash)
hash
- - the raw byte[] hash.public void setHexHash(String hexHash)
hexHash
- - the hex encoded hash.Copyright © 2018 JBoss by Red Hat. All rights reserved.