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. |
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. |
Qualifier and Type | Method Name and Description |
|---|---|
public javax.crypto.Cipher | Obtains a Cipher object. |
public javax.crypto.Mac | getMac() Obtains a Mac object. |
public java.security.Signature | Obtains a Signature object. |
Constructor |
|---|
public CryptoObject(java.security.Signature signature) Constructs a CryptoObject object carrying Signature. |
Parameters
Name | Description |
|---|---|
signature | Signature object. |
Constructor |
|---|
public CryptoObject(javax.crypto.Cipher cipher) Constructs a CryptoObject object carrying Cipher. |
Parameters
Name | Description |
|---|---|
cipher | Cipher object. |
Constructor |
|---|
public CryptoObject(javax.crypto.Mac mac) Constructs a CryptoObject object carrying Mac. |
Parameters
Name | Description |
|---|---|
mac | Mac object. |
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. |