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.
|
@CheckForNull ByteBuffer getSecret()
void setSecret(@CheckForNull ByteBuffer secret)
secret
- the secret data to copy and set.Copyright © 2012–2014 Schlichtherle IT Services. All rights reserved.