public final class DecryptParameters extends Object
| Modifier and Type | Method and Description |
|---|---|
static DecryptParameters |
createA128CbcPadParameters(byte[] ciphertext,
byte[] iv)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A128CBCPAD. |
static DecryptParameters |
createA128CbcParameters(byte[] ciphertext,
byte[] iv)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A128CBC. |
static DecryptParameters |
createA128GcmParameters(byte[] ciphertext,
byte[] iv,
byte[] authenticationTag)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A128GCM. |
static DecryptParameters |
createA128GcmParameters(byte[] ciphertext,
byte[] iv,
byte[] authenticationTag,
byte[] additionalAuthenticatedData)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A128GCM. |
static DecryptParameters |
createA192CbcPadParameters(byte[] ciphertext,
byte[] iv)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A192CBCPAD. |
static DecryptParameters |
createA192CbcParameters(byte[] ciphertext,
byte[] iv)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A192CBC. |
static DecryptParameters |
createA192GcmParameters(byte[] ciphertext,
byte[] iv,
byte[] authenticationTag)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A192GCM. |
static DecryptParameters |
createA192GcmParameters(byte[] ciphertext,
byte[] iv,
byte[] authenticationTag,
byte[] additionalAuthenticatedData)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A192GCM. |
static DecryptParameters |
createA256CbcPadParameters(byte[] ciphertext,
byte[] iv)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A256CBCPAD. |
static DecryptParameters |
createA256CbcParameters(byte[] ciphertext,
byte[] iv)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A256CBC. |
static DecryptParameters |
createA256GcmParameters(byte[] ciphertext,
byte[] iv,
byte[] authenticationTag)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A256GCM. |
static DecryptParameters |
createA256GcmParameters(byte[] ciphertext,
byte[] iv,
byte[] authenticationTag,
byte[] additionalAuthenticatedData)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A256GCM. |
static DecryptParameters |
createRsa15Parameters(byte[] ciphertext)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.RSA1_5. |
static DecryptParameters |
createRsaOaep256Parameters(byte[] ciphertext)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.RSA_OAEP_256. |
static DecryptParameters |
createRsaOaepParameters(byte[] ciphertext)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.RSA_OAEP. |
byte[] |
getAdditionalAuthenticatedData()
Get additional data to authenticate when performing decryption with an authenticated algorithm.
|
EncryptionAlgorithm |
getAlgorithm()
The algorithm to be used for decryption.
|
byte[] |
getAuthenticationTag()
Get the tag to authenticate when performing decryption with an authenticated algorithm.
|
byte[] |
getCipherText()
Get the content to be decrypted.
|
byte[] |
getIv()
Get the initialization vector to be used in the decryption operation using a symmetric algorithm.
|
public static DecryptParameters createA128CbcParameters(byte[] ciphertext, byte[] iv)
DecryptParameters with the given parameters for
EncryptionAlgorithm.A128CBC.ciphertext - The content to be decrypted.iv - Initialization vector for the decryption operation.DecryptParameters.public static DecryptParameters createA128CbcPadParameters(byte[] ciphertext, byte[] iv)
DecryptParameters with the given parameters for
EncryptionAlgorithm.A128CBCPAD.ciphertext - The content to be decrypted.iv - Initialization vector for the decryption operation.DecryptParameters.public static DecryptParameters createA128GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag)
DecryptParameters with the given parameters for
EncryptionAlgorithm.A128GCM.ciphertext - The content to be decrypted.iv - Initialization vector for the decryption operation.authenticationTag - The tag to authenticate when performing decryption.DecryptParameters.public static DecryptParameters createA128GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag, byte[] additionalAuthenticatedData)
DecryptParameters with the given parameters for
EncryptionAlgorithm.A128GCM.ciphertext - The content to be decrypted.iv - Initialization vector for the decryption operation.authenticationTag - The tag to authenticate when performing decryption.additionalAuthenticatedData - Additional data to authenticate when using authenticated crypto algorithms.DecryptParameters.public static DecryptParameters createA192CbcParameters(byte[] ciphertext, byte[] iv)
DecryptParameters with the given parameters for
EncryptionAlgorithm.A192CBC.ciphertext - The content to be decrypted.iv - Initialization vector for the decryption operation.DecryptParameters.public static DecryptParameters createA192CbcPadParameters(byte[] ciphertext, byte[] iv)
DecryptParameters with the given parameters for
EncryptionAlgorithm.A192CBCPAD.ciphertext - The content to be decrypted.iv - Initialization vector for the decryption operation.DecryptParameters.public static DecryptParameters createA192GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag)
DecryptParameters with the given parameters for
EncryptionAlgorithm.A192GCM.ciphertext - The content to be decrypted.iv - Initialization vector for the decryption operation.authenticationTag - The tag to authenticate when performing decryption.DecryptParameters.public static DecryptParameters createA192GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag, byte[] additionalAuthenticatedData)
DecryptParameters with the given parameters for
EncryptionAlgorithm.A192GCM.ciphertext - The content to be decrypted.iv - Initialization vector for the decryption operation.authenticationTag - The tag to authenticate when performing decryption.additionalAuthenticatedData - Additional data to authenticate when using authenticated crypto algorithms.DecryptParameters.public static DecryptParameters createA256CbcParameters(byte[] ciphertext, byte[] iv)
DecryptParameters with the given parameters for
EncryptionAlgorithm.A256CBC.ciphertext - The content to be decrypted.iv - Initialization vector for the decryption operation.DecryptParameters.public static DecryptParameters createA256CbcPadParameters(byte[] ciphertext, byte[] iv)
DecryptParameters with the given parameters for
EncryptionAlgorithm.A256CBCPAD.ciphertext - The content to be decrypted.iv - Initialization vector for the decryption operation.DecryptParameters.public static DecryptParameters createA256GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag)
DecryptParameters with the given parameters for
EncryptionAlgorithm.A256GCM.ciphertext - The content to be decrypted.iv - Initialization vector for the decryption operation.authenticationTag - The tag to authenticate when performing decryption.DecryptParameters.public static DecryptParameters createA256GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag, byte[] additionalAuthenticatedData)
DecryptParameters with the given parameters for
EncryptionAlgorithm.A256GCM.ciphertext - The content to be decrypted.iv - Initialization vector for the decryption operation.authenticationTag - The tag to authenticate when performing decryption.additionalAuthenticatedData - Additional data to authenticate when using authenticated crypto algorithms.DecryptParameters.public static DecryptParameters createRsa15Parameters(byte[] ciphertext)
DecryptParameters with the given parameters for
EncryptionAlgorithm.RSA1_5.ciphertext - The content to be decrypted.DecryptParameters.public static DecryptParameters createRsaOaepParameters(byte[] ciphertext)
DecryptParameters with the given parameters for
EncryptionAlgorithm.RSA_OAEP.ciphertext - The content to be decrypted.DecryptParameters.public static DecryptParameters createRsaOaep256Parameters(byte[] ciphertext)
DecryptParameters with the given parameters for
EncryptionAlgorithm.RSA_OAEP_256.ciphertext - The content to be decrypted.DecryptParameters.public EncryptionAlgorithm getAlgorithm()
public byte[] getCipherText()
public byte[] getIv()
public byte[] getAdditionalAuthenticatedData()
public byte[] getAuthenticationTag()
Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.