Syntax
Cipher
getCipher
(
Map< String, Object >
context
,
SecProfile
profile
,
String
operation
) throws SecException
Parameters
-
context –
CSI context
-
profile –
SecProfile object containing the properties to create and initialize a Cipher instance.
-
operation –
specifies the operation for which to initialize the Cipher object. Valid values are Const.OP_ENCRYPT and Const.OP_DECRYPT
Returns
Cipher object created based on the properties specified in the profile Map and initialized for the specified operation. Returns null if unable to handle the profile.
Usage
Cipher object created based on the properties specified in the profile Map and initialized for the specified operation. Returns null if unable to handle the profile.