目录

CLASS info
public class CryptoObject extends java.lang.Object
Represents a wrapper class of encryption objects associated with fingerprint authentication or 3D facial authentication. The current framework supports the Signature, Cipher and Mac objects.

Public Constructor Summary

Method name
CryptoObject(java.security.Signature signature)
CryptoObject(javax.crypto.Cipher cipher)
CryptoObject(javax.crypto.Mac mac)

Public Method Summary

Return typeMethod name
javax.crypto.Cipher

getCipher()

Gets the Cipher object.

javax.crypto.Mac

getMac()

Gets the Mac object.

java.security.Signature

getSignature()

Gets the Signature object.

Public Constructors

Method
public CryptoObject (java.security.Signature signature)
Constructs a CryptoObject object carrying Signature.

Parameters

Parameter nameParameter desc
signatureSignature object.
Method
public CryptoObject (javax.crypto.Cipher cipher)
Constructs a CryptoObject object carrying Cipher.

Parameters

Parameter nameParameter desc
cipherCipher object.
Method
public CryptoObject (javax.crypto.Mac mac)
Constructs a CryptoObject object carrying Mac.

Parameters

Parameter nameParameter desc
macMac object.

Public Methods

Method
public javax.crypto.Cipher getCipher ()
Gets the Cipher object.

Return

typedesc
javax.crypto.CipherCipher object. If Cipher is not contained, it is null.
Method
public javax.crypto.Mac getMac ()
Gets the Mac object.

Return

typedesc
javax.crypto.MacMac object. If Mac is not contained, it is null.
Method
public java.security.Signature getSignature ()
Gets the Signature object.

Return

typedesc
java.security.SignatureSignature object. If Signature is not contained, it is null.