Package | Description |
---|---|
com.nimbusds.jose.crypto.impl |
Cryptographic primitives and framework for the JWS signers / verifiers and
JWE encrypters / decrypters in the
com.nimbusds.jose.crypto package. |
Modifier and Type | Method and Description |
---|---|
static AuthenticatedCipherText |
LegacyAESGCM.encrypt(SecretKey secretKey,
byte[] iv,
byte[] plainText,
byte[] authData)
Encrypts the specified plain text using AES/GCM/NoPadding.
|
static AuthenticatedCipherText |
AESGCM.encrypt(SecretKey secretKey,
Container<byte[]> ivContainer,
byte[] plainText,
byte[] authData,
Provider provider)
Encrypts the specified plain text using AES/GCM/NoPadding.
|
static AuthenticatedCipherText |
AESCBC.encryptAuthenticated(SecretKey secretKey,
byte[] iv,
byte[] plainText,
byte[] aad,
Provider ceProvider,
Provider macProvider)
Encrypts the specified plain text using AES/CBC/PKCS5Padding/
HMAC-SHA2.
|
static AuthenticatedCipherText |
AESGCMKW.encryptCEK(SecretKey cek,
Container<byte[]> iv,
SecretKey kek,
Provider provider)
Encrypts the specified Content Encryption Key (CEK).
|
static AuthenticatedCipherText |
AESCBC.encryptWithConcatKDF(JWEHeader header,
SecretKey secretKey,
Base64URL encryptedKey,
byte[] iv,
byte[] plainText,
Provider ceProvider,
Provider macProvider)
Encrypts the specified plain text using the deprecated concat KDF
from JOSE draft suite 09.
|
Modifier and Type | Method and Description |
---|---|
static SecretKey |
AESGCMKW.decryptCEK(SecretKey kek,
byte[] iv,
AuthenticatedCipherText authEncrCEK,
int keyLength,
Provider provider)
Decrypts the specified encrypted Content Encryption Key (CEK).
|
Copyright © 2019 Connect2id Ltd.. All rights reserved.