public class QrCodeSignature extends BaseSignature
Contains QR-code signature properties.
Constructor and Description |
---|
QrCodeSignature() |
QrCodeSignature(String signatureId)
Initialize QrCodeSignature object with signature identifier that was obtained after search process.
|
Modifier and Type | Method and Description |
---|---|
Object |
deepClone()
Clone QR-Code Signature instance.
|
boolean |
equals(Object signature)
Overwrites Equals method to compare signature properties
|
byte[] |
getContent()
|
<T> T |
getData(Class<T> type)
Obtain object from QR-Code Signature Text over deserialization.
|
<T> T |
getData(IDataEncryption dataEncryption,
Class<T> type)
Obtain object from QR-Code Signature Text over deserialization.
|
QrCodeType |
getEncodeType()
Specifies the QR-code Encode Type.
|
FileType |
getFormat()
Specifies the format of QR-code signature image.
|
String |
getText()
Specifies text of QR-code.
|
int |
hashCode()
Overrides GetHashCode method
|
void |
setContent(SignOptions signOptions,
BufferedImage image) |
getCreatedOn, getDeleted, getHeight, getLeft, getModifiedOn, getPageNumber, getSignatureId, getSignatureType, getTop, getWidth, isSignature, setCreatedOn, setHeight, setLeft, setModifiedOn, setPageNumber, setSignature, setTop, setWidth, supportMetaInfoLayer, toString
public QrCodeSignature()
public QrCodeSignature(String signatureId)
Initialize QrCodeSignature object with signature identifier that was obtained after search process. This unique identifier is used to find additional properties for this signature from document signature information layer.
signatureId
- Unique signature identifier obtained by sign or search method.public Object deepClone()
Clone QR-Code Signature instance.
deepClone
in class BaseSignature
public boolean equals(Object signature)
Overwrites Equals method to compare signature properties
equals
in class BaseSignature
signature
- Signature object to compare with.public final byte[] getContent()
Specifies QR-code binary data image content of type Format
(getFormat()
/setFormat(FileType)
).
By default this property will not be set.
Use property QrCodeSearchOptions.ReturnContent
(QrCodeSearchOptions.getReturnContent()
/QrCodeSearchOptions.setReturnContent(boolean)
) to enable this feature.
public final <T> T getData(Class<T> type) throws Exception
Obtain object from QR-Code Signature Text over deserialization.
T
: Type of object to deserialize from QR-Code Text
Exception
public final <T> T getData(IDataEncryption dataEncryption, Class<T> type) throws Exception
Obtain object from QR-Code Signature Text over deserialization.
dataEncryption
- Set custom data encryption implementation
T
: Type of object to deserialize from QR-Code Text
Exception
public final QrCodeType getEncodeType()
Specifies the QR-code Encode Type.
public final FileType getFormat()
Specifies the format of QR-code signature image.
public final String getText()
Specifies text of QR-code.
public int hashCode()
Overrides GetHashCode method
hashCode
in class BaseSignature
public final void setContent(SignOptions signOptions, BufferedImage image) throws Exception
Exception