Class CreateSignatureInfo
java.lang.Object
com.sas.lsaf.content.repository.signature.CreateSignatureInfo
- All Implemented Interfaces:
Serializable
The class that represents the parameters that are required to create a signature. The credentials that are stored on
the parameters object are tested before the electronic signature is created. If an
AuthenticationException is thrown, it prevents the signature process from
being completed.- Since:
- 1.7
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an allocatedCreateSignatureInfowith all of the fields uninitialized. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the comment to use to create the signature.byte[]Gets the password that is used to create the signature.Gets the signature reason to use to create the signature.getRole()Gets the role to use to create the signature.Gets the user identifier to use to create the signature.inthashCode()voidsetComment(String comment) Sets the comment to use to create the signature.voidsetPassword(byte[] password) Sets the password to use during the signature process.voidSets the signature reason to use to create the signature.voidSets the signature role to use to create signature.voidSets the user identifier to to use to create the signature.toString()
-
Constructor Details
-
CreateSignatureInfo
public CreateSignatureInfo()Constructs an allocatedCreateSignatureInfowith all of the fields uninitialized.
-
-
Method Details
-
getUserId
Gets the user identifier to use to create the signature.- Returns:
- The user identifier to use to create the signature.
-
setUserId
Sets the user identifier to to use to create the signature. This value is required.- Parameters:
userId- The user identifier to use to create the signature.- See Also:
-
getPassword
public byte[] getPassword()Gets the password that is used to create the signature. The password must be the current password of the account that is specified by thesetUserId(String)value. The credentials are tested as part of the signature process.- Returns:
- The password for the signee account.
-
setPassword
public void setPassword(byte[] password) Sets the password to use during the signature process. This value is required.- Parameters:
password- The password to use to create the signature.
-
getRole
Gets the role to use to create the signature.- Returns:
- The role to use to create the signature.
-
setRole
Sets the signature role to use to create signature. This value is required.To retrieve the valid roles, call
SignatureService.getSignatureRoles().- Parameters:
role- The role to use to create the signature.- See Also:
-
getReason
Gets the signature reason to use to create the signature.- Returns:
- The reason to use to create the signature.
-
setReason
Sets the signature reason to use to create the signature. This value is required.To retrieve the valid reasons call
SignatureService.getSignatureReasons().- Parameters:
reason- The reason to use to create the signature.- See Also:
-
getComment
Gets the comment to use to create the signature.- Returns:
- The comment to use to create the signature.
-
setComment
Sets the comment to use to create the signature. This value is optional.- Parameters:
comment- The comment to use to create the signature.- See Also:
-
hashCode
public int hashCode() -
equals
-
toString
-