QrCodeSignature
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.signature.domain.signatures.BaseSignature
public class QrCodeSignature extends BaseSignature
Contains QR-code signature properties.
| Constructor | Description |
|---|---|
| QrCodeSignature(String signatureId) | Initialize QrCodeSignature object with signature identifier that was obtained after search process. |
| QrCodeSignature() |
| Method | Description |
|---|---|
| getEncodeType() | Specifies the QR-code Encode Type. |
| getText() | Specifies text of QR-code. |
| getFormat() | Specifies the format of QR-code signature image. |
| getContent() | Specifies QR-code binary data image content of type Format (#getFormat.getFormat/#setFormat(FileType).setFormat(FileType)). |
| Obtain object from QR-Code Signature Text over deserialization. | |
| Obtain object from QR-Code Signature Text over deserialization. | |
| equals(Object signature) | Overwrites Equals method to compare signature properties |
| hashCode() | Overrides GetHashCode method |
| deepClone() | Clone QR-Code Signature instance. |
| setContent(SignOptions signOptions, BufferedImage image) |
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.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| signatureId | java.lang.String | Unique signature identifier obtained by sign or search method. |
public QrCodeSignature()
public final QrCodeType getEncodeType()
Specifies the QR-code Encode Type.
Returns: QrCodeType
public final String getText()
Specifies text of QR-code.
Returns: java.lang.String
public final FileType getFormat()
Specifies the format of QR-code signature image.
Returns: FileType
public final byte[] getContent()
Specifies QR-code binary data image content of type Format (#getFormat.getFormat/#setFormat(FileType).setFormat(FileType)). By default this property will not be set. Use property QrCodeSearchOptions.ReturnContent (QrCodeSearchOptions.getReturnContent/QrCodeSearchOptions.setReturnContent(boolean)) to enable this feature.
Returns: byte[]
public final T <T>getData(Class<T> type)
Obtain object from QR-Code Signature Text over deserialization.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| type | java.lang.Class |
Returns: T - T : Type of object to deserialize from QR-Code Text
public final T <T>getData(IDataEncryption dataEncryption, Class<T> type)
Obtain object from QR-Code Signature Text over deserialization.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| dataEncryption | IDataEncryption | Set custom data encryption implementation |
T : Type of object to deserialize from QR-Code Text |
| type | java.lang.Class
Returns: T -
public boolean equals(Object signature)
Overwrites Equals method to compare signature properties
Parameters:
| Parameter | Type | Description |
|---|---|---|
| signature | java.lang.Object | Signature object to compare with. |
Returns: boolean - Returns true if passed signature object has same type and all its properties are equal to this instance properties.
public int hashCode()
Overrides GetHashCode method
Returns: int - Signature hash code
public Object deepClone()
Clone QR-Code Signature instance.
Returns: java.lang.Object - Returns cloned QR-code Signature instance.
public final void setContent(SignOptions signOptions, BufferedImage image)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| signOptions | SignOptions | |
| image | java.awt.image.BufferedImage |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.