QrCodeSignature

Inheritance: java.lang.Object, com.groupdocs.signature.domain.signatures.BaseSignature

public class QrCodeSignature extends BaseSignature

Contains QR-code signature properties.

Constructors

Constructor Description
QrCodeSignature(String signatureId) Initialize QrCodeSignature object with signature identifier that was obtained after search process.
QrCodeSignature()

Methods

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)).
getData(Class type) Obtain object from QR-Code Signature Text over deserialization.
getData(IDataEncryption dataEncryption, Class type) 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)

QrCodeSignature(String signatureId)

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.

QrCodeSignature()

public QrCodeSignature()

getEncodeType()

public final QrCodeType getEncodeType()

Specifies the QR-code Encode Type.

Returns: QrCodeType

getText()

public final String getText()

Specifies text of QR-code.

Returns: java.lang.String

getFormat()

public final FileType getFormat()

Specifies the format of QR-code signature image.

Returns: FileType

getContent()

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[]

getData(Class type)

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

getData(IDataEncryption dataEncryption, Class type)

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 -

equals(Object signature)

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.

hashCode()

public int hashCode()

Overrides GetHashCode method

Returns: int - Signature hash code

deepClone()

public Object deepClone()

Clone QR-Code Signature instance.

Returns: java.lang.Object - Returns cloned QR-code Signature instance.

setContent(SignOptions signOptions, BufferedImage image)

public final void setContent(SignOptions signOptions, BufferedImage image)

Parameters:

Parameter Type Description
signOptions SignOptions
image java.awt.image.BufferedImage