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 |
|---|---|
DigestAlgorithm |
getDigestAlgorithm() |
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".
|
byte[] |
getEncodedDigestInfo()
Returns DER-encoded DigestInfo identification.
|
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.
|
void |
setDigestAlgorithmOid(java.lang.String digestAlgorithmOid)
Sets 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".
|
void |
setToken(java.lang.String token)
Sets the token, which must be passed when finishing the signature.
|
void |
setToSignData(java.lang.String toSignData) |
void |
setToSignDataRaw(byte[] toSignData) |
void |
setToSignHash(byte[] toSignHash)
Sets the precomputed digest of the bytes to be singed using the signer certificate's private
key.
|
void |
setToSignHash(java.lang.String toSignHash)
Sets the precomputed digest of the bytes to be singed using the signer certificate's private
key, encoded in Base64.
|
public ClientSideSignatureInstructions(java.lang.String token,
java.lang.String toSignData,
java.lang.String toSignHash,
java.lang.String digestAlgorithmOid)
public java.lang.String getToken()
public void setToken(java.lang.String token)
token - The token, a 43-character case-sensitive string containing only letters, numbers
and the characters "-" and "_" (therefore URL and HTML safe).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 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.
@Deprecated public java.lang.String getToSignData()
public void setToSignData(java.lang.String toSignData)
public void setToSignDataRaw(byte[] toSignData)
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 void setToSignHash(java.lang.String toSignHash)
toSignHash - The "to sign precomputed digest of the bytes", encoded in Base64.public void setToSignHash(byte[] toSignHash)
toSignHash - The "to sign precomputed digest of the bytes", encoded in Base64.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 void setDigestAlgorithmOid(java.lang.String digestAlgorithmOid)
digestAlgorithmOid - The OID of the digest algorithm
(for instance "2.16.840.1.101.3.4.2.1").public java.lang.String getSignatureAlgorithm()
public DigestAlgorithm getDigestAlgorithm()
public byte[] getEncodedDigestInfo()