K - the type of this secret key.@ImplementationsShouldExtend(value=AbstractSecretKey.class) public interface SecretKey<K extends SecretKey<K>> extends Key<K>
Implementations do not need to be safe for multi-threading.
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
getSecret()
Returns a protective copy of the secret data.
|
void |
setSecret(ByteBuffer secret)
Clears the current secret data and sets it to a protective copy of the
given secret data.
|
@Nullable ByteBuffer getSecret()
void setSecret(@Nullable ByteBuffer secret)
secret - the secret data to copy and set.Copyright © 2012–2015 Schlichtherle IT Services. All rights reserved.