public class ConcatKDF extends Object
A128CBC+HS256
and A256CBC+HS512
encryption (deprecated).
See draft-ietf-jose-json-web-encryption-08, appendices A.4 and A.5.
Constructor and Description |
---|
ConcatKDF() |
Modifier and Type | Method and Description |
---|---|
static SecretKey |
generateCEK(SecretKey key,
String encAlgorithm)
Generates a Content Encryption Key (CEK) from the specified Content Master Key (CMK) and JOSE encryption method.
|
static SecretKey |
generateCIK(SecretKey key,
String encAlgorithm)
Generates a Content Integrity Key (CIK) from the specified Content Master Key (CMK) and JOSE encryption method.
|
public static SecretKey generateCEK(SecretKey key, String encAlgorithm)
key
- The Content Master Key (CMK). Must not be null
.enc
- The JOSE encryption algorithm. Must not be null
.RuntimeException
- If CEK generation failed.public static SecretKey generateCIK(SecretKey key, String encAlgorithm)
key
- The Content Master Key (CMK). Must not be null
.enc
- The JOSE encryption algorithm. Must not be null
.JOSEException
- If CIK generation failed.Copyright © 2015. All rights reserved.