Returns a java.security.Signature object instance initialized for the specified operation.
Syntax
Signature
getSignature
(
String
profileName
,
Operation
operation
) throws SecException
Parameters
-
profileName –
-
operation –
that will be performed using the returned Signature object. Valid values are Operation.SIGN and Operation.VERIFY.
Returns
Signature object to perform the specified operation.
Exceptions
-
IllegalStateException –
if the specified profile requires a role to access and there is no current authenticated subject or if the context has been destroyed.
-
SecException class –
if no profile with the specified profile name exists or if the specified profile requires a role to access and if the authenticated subject is not in that role. Or if none of the configured SecureDataService providers can handle the request.
-
IllegalArgumentException –
if the specified value for operation parameter is not valid.
Usage
Signature object to perform the specified operation.