Package | Description |
---|---|
org.picketlink.json.jose.crypto |
This package provides the cryptography related classes to sign and encrypt JSON.
|
Modifier and Type | Method and Description |
---|---|
static AuthenticatedCipherText |
AESGCM.encrypt(SecretKey secretKey,
byte[] iv,
byte[] plainText,
byte[] authData)
Encrypts the specified plain text using AES/GCM/NoPadding.
|
static AuthenticatedCipherText |
AESCBC.encryptAuthenticated(SecretKey secretKey,
byte[] iv,
byte[] plainText,
byte[] aad)
Encrypts the specified plain text using AES/CBC/PKCS5Padding/ HMAC-SHA2.
|
Copyright © 2017. All rights reserved.