public class DerivedKeyTokenImpl extends Object implements DerivedKeyToken
DEFAULT_DERIVED_KEY_TOKEN_ALGORITHM, DEFAULT_DERIVEDKEYTOKEN_LABEL, DERIVED_KEY_TOKEN_TYPE| Constructor and Description |
|---|
DerivedKeyTokenImpl(long generation,
byte[] secret) |
DerivedKeyTokenImpl(long offset,
long length,
byte[] secret)
Creates a new instance of DerivedKeyTokenImpl
|
DerivedKeyTokenImpl(long offset,
long length,
byte[] secret,
byte[] nonce) |
DerivedKeyTokenImpl(long offset,
long length,
byte[] secret,
byte[] nonce,
String label) |
| Modifier and Type | Method and Description |
|---|---|
SecretKey |
generateSymmetricKey(String algorithm) |
URI |
getAlgorithm() |
long |
getGeneration() |
String |
getLabel() |
long |
getLength() |
byte[] |
getNonce() |
long |
getOffset() |
Object |
getTokenValue() |
String |
getType() |
public DerivedKeyTokenImpl(long offset,
long length,
byte[] secret)
public DerivedKeyTokenImpl(long offset,
long length,
byte[] secret,
byte[] nonce)
public DerivedKeyTokenImpl(long offset,
long length,
byte[] secret,
byte[] nonce,
String label)
public DerivedKeyTokenImpl(long generation,
byte[] secret)
public URI getAlgorithm()
getAlgorithm in interface DerivedKeyTokenpublic long getLength()
getLength in interface DerivedKeyTokenpublic long getOffset()
getOffset in interface DerivedKeyTokenpublic Object getTokenValue()
getTokenValue in interface Tokenpublic long getGeneration()
getGeneration in interface DerivedKeyTokenpublic String getLabel()
getLabel in interface DerivedKeyTokenpublic byte[] getNonce()
getNonce in interface DerivedKeyTokenpublic SecretKey generateSymmetricKey(String algorithm) throws InvalidKeyException, NoSuchAlgorithmException, UnsupportedEncodingException
generateSymmetricKey in interface DerivedKeyTokenInvalidKeyExceptionNoSuchAlgorithmExceptionUnsupportedEncodingExceptionCopyright © 2005–2018 Oracle Corporation. All rights reserved.