public class CompositeKey extends Object
See draft-ietf-jose-json-web-algorithms-26, section 5.2.
Constructor and Description |
---|
CompositeKey(SecretKey inputKey)
Creates a new composite key from the specified secret key.
|
Modifier and Type | Method and Description |
---|---|
SecretKey |
getAESKey()
Gets the extracted encryption key.
|
SecretKey |
getInputKey()
Gets the input key.
|
SecretKey |
getMACKey()
Gets the extracted MAC key.
|
int |
getTruncatedMACByteLength()
Gets the expected truncated MAC length.
|
public CompositeKey(SecretKey inputKey)
inputKey
- The input key. Must be 256, 384 or 512 bits long. Must not be null
.RuntimeException
- If the input key length is not supported.public SecretKey getInputKey()
public SecretKey getMACKey()
public int getTruncatedMACByteLength()
public SecretKey getAESKey()
Copyright © 2017. All rights reserved.