BiometricPrompt.CryptoObject
public
static
class
BiometricPrompt.CryptoObject
extends Object
java.lang.Object | |
↳ | androidx.biometric.BiometricPrompt.CryptoObject |
A wrapper class for the crypto objects supported by BiometricPrompt
.
Summary
Public constructors | |
---|---|
CryptoObject(Signature signature)
Creates a crypto object that wraps the given signature object. |
|
CryptoObject(Cipher cipher)
Creates a crypto object that wraps the given cipher object. |
|
CryptoObject(Mac mac)
Creates a crypto object that wraps the given MAC object. |
|
CryptoObject(IdentityCredential identityCredential)
Creates a crypto object that wraps the given identity credential object. |
Public methods | |
---|---|
Cipher
|
getCipher()
Gets the cipher object associated with this crypto object. |
IdentityCredential
|
getIdentityCredential()
Gets the identity credential object associated with this crypto object. |
Mac
|
getMac()
Gets the MAC object associated with this crypto object. |
Signature
|
getSignature()
Gets the signature object associated with this crypto object. |
Inherited methods | |
---|---|
Public constructors
CryptoObject
public CryptoObject (Signature signature)
Creates a crypto object that wraps the given signature object.
Parameters | |
---|---|
signature |
Signature : The signature to be associated with this crypto object.
|
CryptoObject
public CryptoObject (Cipher cipher)
Creates a crypto object that wraps the given cipher object.
Parameters | |
---|---|
cipher |
Cipher : The cipher to be associated with this crypto object.
|
CryptoObject
public CryptoObject (Mac mac)
Creates a crypto object that wraps the given MAC object.
Parameters | |
---|---|
mac |
Mac : The MAC to be associated with this crypto object.
|
CryptoObject
public CryptoObject (IdentityCredential identityCredential)
Creates a crypto object that wraps the given identity credential object.
Parameters | |
---|---|
identityCredential |
IdentityCredential : The identity credential to be associated with this crypto
object.
|
Public methods
getCipher
public Cipher getCipher ()
Gets the cipher object associated with this crypto object.
Returns | |
---|---|
Cipher |
The cipher, or null if none is associated with this object.
|
getIdentityCredential
public IdentityCredential getIdentityCredential ()
Gets the identity credential object associated with this crypto object.
Returns | |
---|---|
IdentityCredential |
The identity credential, or null if none is associated with this object.
|
getMac
public Mac getMac ()
Gets the MAC object associated with this crypto object.
Returns | |
---|---|
Mac |
The MAC, or null if none is associated with this object.
|
getSignature
public Signature getSignature ()
Gets the signature object associated with this crypto object.
Returns | |
---|---|
Signature |
The signature, or null if none is associated with this object.
|