public class SignatureLine
extends java.lang.Object
To learn more, visit the Work with Digital Signatures documentation article.
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAllowComments()
Gets a value indicating that the signer can add comments in the Sign dialog.
|
boolean |
getDefaultInstructions()
Gets a value indicating that default instructions is shown in the Sign dialog.
|
java.lang.String |
getEmail()
Gets suggested signer's e-mail address.
|
java.util.UUID |
getId()
Gets identifier for this signature line.
|
java.lang.String |
getInstructions()
Gets instructions to the signer that are displayed on signing the signature line.
|
java.util.UUID |
getProviderId()
Gets signature provider identifier for this signature line.
|
boolean |
getShowDate()
Gets a value indicating that sign date is shown in the signature line.
|
java.lang.String |
getSigner()
Gets suggested signer of the signature line.
|
java.lang.String |
getSignerTitle()
Gets suggested signer's title (for example, Manager).
|
boolean |
isSigned()
Indicates that signature line is signed by digital signature.
|
boolean |
isValid()
Indicates that signature line is signed by digital signature and this digital signature is valid.
|
void |
setAllowComments(boolean value)
Sets a value indicating that the signer can add comments in the Sign dialog.
|
void |
setDefaultInstructions(boolean value)
Sets a value indicating that default instructions is shown in the Sign dialog.
|
void |
setEmail(java.lang.String value)
Sets suggested signer's e-mail address.
|
void |
setId(java.util.UUID value)
Sets identifier for this signature line.
|
void |
setInstructions(java.lang.String value)
Sets instructions to the signer that are displayed on signing the signature line.
|
void |
setProviderId(java.util.UUID value)
Sets signature provider identifier for this signature line.
|
void |
setShowDate(boolean value)
Sets a value indicating that sign date is shown in the signature line.
|
void |
setSigner(java.lang.String value)
Sets suggested signer of the signature line.
|
void |
setSignerTitle(java.lang.String value)
Sets suggested signer's title (for example, Manager).
|
public java.lang.String getSigner()
public void setSigner(java.lang.String value)
throws java.lang.Exception
value - Suggested signer of the signature line.java.lang.Exceptionpublic java.lang.String getSignerTitle()
public void setSignerTitle(java.lang.String value)
throws java.lang.Exception
value - Suggested signer's title (for example, Manager).java.lang.Exceptionpublic java.lang.String getEmail()
public void setEmail(java.lang.String value)
value - Suggested signer's e-mail address.public boolean getDefaultInstructions()
public void setDefaultInstructions(boolean value)
value - A value indicating that default instructions is shown in the Sign dialog.public java.lang.String getInstructions()
getDefaultInstructions() / setDefaultInstructions(boolean) is set. Default value for this property is empty string.public void setInstructions(java.lang.String value)
getDefaultInstructions() / setDefaultInstructions(boolean) is set. Default value for this property is empty string.value - Instructions to the signer that are displayed on signing the signature line.public boolean getAllowComments()
public void setAllowComments(boolean value)
value - A value indicating that the signer can add comments in the Sign dialog.public boolean getShowDate()
public void setShowDate(boolean value)
value - A value indicating that sign date is shown in the signature line.public java.util.UUID getId()
This identifier can be associated with a digital signature, when signing document using DigitalSignatureUtil. This value must be unique and by default it is randomly generated new Guid.
public void setId(java.util.UUID value)
This identifier can be associated with a digital signature, when signing document using DigitalSignatureUtil. This value must be unique and by default it is randomly generated new Guid.
value - Identifier for this signature line.public java.util.UUID getProviderId()
The cryptographic service provider (CSP) is an independent software module that actually performs cryptography algorithms for authentication, encoding, and encryption. MS Office reserves the value of {00000000-0000-0000-0000-000000000000} for its default signature provider.
The GUID of the additionally installed provider should be obtained from the documentation shipped with the provider.
In addition, all the installed cryptographic providers are enumerated in windows registry. It can be found in the following path: HKLM\SOFTWARE\Microsoft\Cryptography\Defaults\Provider. There is a key name "CP Service UUID" which corresponds to a GUID of signature provider.
public void setProviderId(java.util.UUID value)
The cryptographic service provider (CSP) is an independent software module that actually performs cryptography algorithms for authentication, encoding, and encryption. MS Office reserves the value of {00000000-0000-0000-0000-000000000000} for its default signature provider.
The GUID of the additionally installed provider should be obtained from the documentation shipped with the provider.
In addition, all the installed cryptographic providers are enumerated in windows registry. It can be found in the following path: HKLM\SOFTWARE\Microsoft\Cryptography\Defaults\Provider. There is a key name "CP Service UUID" which corresponds to a GUID of signature provider.
value - Signature provider identifier for this signature line.public boolean isSigned()
boolean value.public boolean isValid()
boolean value.