public class ClientSideSignatureInstructions
extends java.lang.Object
Constructor and Description |
---|
ClientSideSignatureInstructions(java.lang.String token,
java.lang.String toSignData,
java.lang.String toSignHash,
java.lang.String digestAlgorithmOid) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDigestAlgorithmOid()
Returns the OID of the digest algorithm that must be used to sign the "to sign data" (see method getToSignData()),
which is also the digest algorithm that was used to compute the "to sign hash".
|
java.lang.String |
getSignatureAlgorithm()
Returns the signature algorithm used by the Signature class to compute a signature.
|
java.lang.String |
getToken()
Returns the token, which must be passed when finishing the signature.
|
java.lang.String |
getToSignData()
Deprecated.
Alias for the getToSignDataBase64 method.
|
java.lang.String |
getToSignDataBase64()
Returns the bytes to be signed using the signer certificate's private key, encoded in Base64.
|
byte[] |
getToSignDataRaw()
Return the bytes to be signed using the signer certificate's private key.
|
java.lang.String |
getToSignHash()
Deprecated.
Alias for the getToSignHashBase64 method.
|
java.lang.String |
getToSignHashBase64()
Returns the precomputed digest of the bytes to be signed using the signer certificate's private key,
encoded in Base64.
|
byte[] |
getToSignHashRaw()
Return the precomputed digest of the bytes to be signed using the signer certificate's private key.
|
public ClientSideSignatureInstructions(java.lang.String token, java.lang.String toSignData, java.lang.String toSignHash, java.lang.String digestAlgorithmOid)
public java.lang.String getToken()
public byte[] getToSignDataRaw()
If you are using the Web PKI component to perform the client-side signature, this value must be passed to the component's method signData. You can alternatively call the component's method signHash, in which case you should use the method getToSignHash() instead.
public java.lang.String getToSignDataBase64()
If you are using the Web PKI component to perform the client-side signature, this value must be passed to the component's method signData. You can alternatively call the component's method signHash, in which case you should use the method getToSignHash() instead.
public java.lang.String getToSignData()
public byte[] getToSignHashRaw()
If you are using the Web PKI component to perform the client-side signature, this value must be passed to the component's method signHash. You can alternatively call the component's method signData, in which case you should use the method getToSignData() instead.
public java.lang.String getToSignHashBase64()
If you are using the Web PKI component to perform the client-side signature, this value must be passed to the component's method signHash. You can alternatively call the component's method signData, in which case you should use the method getToSignData() instead.
public java.lang.String getToSignHash()
public java.lang.String getDigestAlgorithmOid()
If you are using the Web PKI component to perform the client-side signature, this value must be passed to the component's methods signData and signHash, depending on which you'll use.
public java.lang.String getSignatureAlgorithm()