目录

CryptoObject

Class Info

public final class CryptoObject

Class for wrapping the encryption objects associated with fingerprint or facial authentication. Currently, the Signature, Cipher, and Mac objects are supported.

Public Constructor Summary

Constructor Name

CryptoObject(java.security.Signature signature)

Wraps the encryption object with a Signature object.

CryptoObject(javax.crypto.Cipher cipher)

Wraps the encryption object with a Cipher object.

CryptoObject(javax.crypto.Mac mac)

Wraps the encryption object with a Mac object.

Public Method Summary

Qualifier and Type

Method Name and Description

public javax.crypto.Cipher

getCipher()

Obtains a Cipher object.

public javax.crypto.Mac

getMac()

Obtains a Mac object.

public java.security.Signature

getSignature()

Obtains a Signature object.

Public Constructors

[h2]CryptoObject(java.security.Signature signature)

Constructor

public CryptoObject(java.security.Signature signature)

Constructs a CryptoObject object carrying Signature.

Parameters

Name

Description

signature

Signature object.

[h2]CryptoObject(javax.crypto.Cipher cipher)

Constructor

public CryptoObject(javax.crypto.Cipher cipher)

Constructs a CryptoObject object carrying Cipher.

Parameters

Name

Description

cipher

Cipher object.

[h2]CryptoObject(javax.crypto.Mac mac)

Constructor

public CryptoObject(javax.crypto.Mac mac)

Constructs a CryptoObject object carrying Mac.

Parameters

Name

Description

mac

Mac object.

Public Methods

[h2]getCipher

Method

public javax.crypto.Cipher getCipher()

Obtains a Cipher object.

Returns

Type

Description

javax.crypto.Cipher

Cipher object. If no Cipher object is contained, null will be returned.

[h2]getMac

Method

public javax.crypto.Mac getMac()

Obtains a Mac object.

Returns

Type

Description

javax.crypto.Mac

Mac object. If no Mac object is contained, null will be returned.

[h2]getSignature

Method

public java.security.Signature getSignature()

Obtains a Signature object.

Returns

Type

Description

java.security.Signature

Signature object. If no Signature object is contained, null will be returned.