public class EncryptedAuthzToken extends Object
| Constructor and Description |
|---|
EncryptedAuthzToken(String rawToken,
RSAPrivateKey privKey,
RSAPublicKey pubKey)
Creates a new decryption instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
decrypt()
Does the actual decryption/decoding of the raw token.
|
public EncryptedAuthzToken(String rawToken, RSAPrivateKey privKey, RSAPublicKey pubKey) throws CorruptedEnvelopeException
rawToken - rawToken the sealed token which is going to be decryptedprivKey - the local private RSA keypubKey - the remote public RSA keyCorruptedEnvelopeExceptionpublic String decrypt() throws NoSuchProviderException, InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidAlgorithmParameterException, BadPaddingException, IllegalBlockSizeException, SignatureException
NoSuchProviderExceptionInvalidKeyExceptionNoSuchAlgorithmExceptionNoSuchPaddingExceptionInvalidAlgorithmParameterExceptionBadPaddingExceptionIllegalBlockSizeExceptionSignatureExceptionCopyright © 2016. All rights reserved.