@ThreadSafe public class KmsSymmetricEncrypter extends KmsSymmetricCryptoProvider implements com.nimbusds.jose.JWEEncrypter
See KmsSymmetricCryptoProvider for supported algorithms and encryption methods, and for details of various
constructor parameters.
ENCRYPTION_CONTEXT_HEADER, ENCRYPTION_METHOD_TO_DATA_KEY_SPEC_MAP, SUPPORTED_ALGORITHMS, SUPPORTED_ENCRYPTION_METHODS| Constructor and Description |
|---|
KmsSymmetricEncrypter(@NonNull com.amazonaws.services.kms.AWSKMS kms,
@NonNull java.lang.String keyId) |
KmsSymmetricEncrypter(@NonNull com.amazonaws.services.kms.AWSKMS kms,
@NonNull java.lang.String keyId,
@NonNull java.util.Map<java.lang.String,java.lang.String> encryptionContext) |
| Modifier and Type | Method and Description |
|---|---|
com.nimbusds.jose.JWECryptoParts |
encrypt(@NonNull com.nimbusds.jose.JWEHeader header,
@NonNull byte[] clearText) |
com.nimbusds.jose.jca.JWEJCAContext |
getJCAContext() |
java.util.Set<com.nimbusds.jose.EncryptionMethod> |
supportedEncryptionMethods() |
java.util.Set<com.nimbusds.jose.JWEAlgorithm> |
supportedJWEAlgorithms() |
getEncryptionContext, getKeyId, getKms, validateJWEHeaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic KmsSymmetricEncrypter(@NonNull
@NonNull com.amazonaws.services.kms.AWSKMS kms,
@NonNull
@NonNull java.lang.String keyId)
public KmsSymmetricEncrypter(@NonNull
@NonNull com.amazonaws.services.kms.AWSKMS kms,
@NonNull
@NonNull java.lang.String keyId,
@NonNull
@NonNull java.util.Map<java.lang.String,java.lang.String> encryptionContext)
public com.nimbusds.jose.JWECryptoParts encrypt(@NonNull
@NonNull com.nimbusds.jose.JWEHeader header,
@NonNull
@NonNull byte[] clearText)
throws com.nimbusds.jose.JOSEException
encrypt in interface com.nimbusds.jose.JWEEncryptercom.nimbusds.jose.JOSEExceptionpublic java.util.Set<com.nimbusds.jose.JWEAlgorithm> supportedJWEAlgorithms()
supportedJWEAlgorithms in interface com.nimbusds.jose.JWEProviderpublic java.util.Set<com.nimbusds.jose.EncryptionMethod> supportedEncryptionMethods()
supportedEncryptionMethods in interface com.nimbusds.jose.JWEProviderpublic com.nimbusds.jose.jca.JWEJCAContext getJCAContext()
getJCAContext in interface com.nimbusds.jose.jca.JCAAware<com.nimbusds.jose.jca.JWEJCAContext>