public class GenericKeyCredential extends Object implements Credential
| Constructor and Description |
|---|
GenericKeyCredential()
Creates an empty GenericKeyCredential
|
GenericKeyCredential(char[] key)
Creates a new GenericKeyCredential
|
| Modifier and Type | Method and Description |
|---|---|
static GenericKeyCredential |
fromValue(String value)
Renders a new GenericKeyCredential from its value representation
|
char[] |
getKey() |
void |
setKey(char[] key) |
char[] |
toValue()
Returns a value representation of this GenericKeyCredential
|
public GenericKeyCredential()
public GenericKeyCredential(char[] key)
key - a char array containing the key for this credentialpublic char[] getKey()
public void setKey(char[] key)
key - a char array containing the key for this credentialpublic char[] toValue()
toValue in interface Credentialpublic static GenericKeyCredential fromValue(String value) throws InvalidCredentialValueException
value - a String containing the value representation of this GenericKeyCredentialInvalidCredentialValueExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.