# FingerprintManagerCompat.CryptoObject

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1  
Summary:[Ctors](https://developer.android.com/reference/android/support/v4/hardware/fingerprint/FingerprintManagerCompat.CryptoObject#pubctors)\|[Methods](https://developer.android.com/reference/android/support/v4/hardware/fingerprint/FingerprintManagerCompat.CryptoObject#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/v4/hardware/fingerprint/FingerprintManagerCompat.CryptoObject#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/v4/hardware/fingerprint/FingerprintManagerCompat.CryptoObject#)  

# FingerprintManagerCompat.CryptoObject

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public
static


class
FingerprintManagerCompat.CryptoObject
`  
`

extends Object


``


`

|---|-------------------------------------------------------------------------------|
| java.lang.Object                                                                 ||
| ↳ | android.support.v4.hardware.fingerprint.FingerprintManagerCompat.CryptoObject |

<br />

*** ** * ** ***

A wrapper class for the crypto objects supported by FingerprintManager. Currently the framework supports[Signature](https://developer.android.com/reference/java/security/Signature)and[Cipher](https://developer.android.com/reference/javax/crypto/Cipher)objects.

## Summary

|                                                                                                                   ### Public constructors                                                                                                                   ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[FingerprintManagerCompat.CryptoObject](https://developer.android.com/reference/android/support/v4/hardware/fingerprint/FingerprintManagerCompat.CryptoObject#FingerprintManagerCompat.CryptoObject(java.security.Signature))`(Signature signature) ` |
| ` `[FingerprintManagerCompat.CryptoObject](https://developer.android.com/reference/android/support/v4/hardware/fingerprint/FingerprintManagerCompat.CryptoObject#FingerprintManagerCompat.CryptoObject(javax.crypto.Cipher))`(Cipher cipher) `           |
| ` `[FingerprintManagerCompat.CryptoObject](https://developer.android.com/reference/android/support/v4/hardware/fingerprint/FingerprintManagerCompat.CryptoObject#FingerprintManagerCompat.CryptoObject(javax.crypto.Mac))`(Mac mac) `                    |

|                                                                                                                        ### Public methods                                                                                                                         ||
|--------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` Cipher`    | ` `[getCipher](https://developer.android.com/reference/android/support/v4/hardware/fingerprint/FingerprintManagerCompat.CryptoObject#getCipher())`() ` Get[Cipher](https://developer.android.com/reference/javax/crypto/Cipher)object.              |
| ` Mac`       | ` `[getMac](https://developer.android.com/reference/android/support/v4/hardware/fingerprint/FingerprintManagerCompat.CryptoObject#getMac())`() ` Get[Mac](https://developer.android.com/reference/javax/crypto/Mac)object.                          |
| ` Signature` | ` `[getSignature](https://developer.android.com/reference/android/support/v4/hardware/fingerprint/FingerprintManagerCompat.CryptoObject#getSignature())`() ` Get[Signature](https://developer.android.com/reference/java/security/Signature)object. |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4/hardware/fingerprint/FingerprintManagerCompat.CryptoObject#)From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||

## Public constructors

### FingerprintManagerCompat.CryptoObject

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
FingerprintManagerCompat.CryptoObject (Signature signature)
```

<br />

<br />

|           Parameters            ||
|-------------|--------------------|
| `signature` | `Signature` <br /> |

### FingerprintManagerCompat.CryptoObject

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
FingerprintManagerCompat.CryptoObject (Cipher cipher)
```

<br />

<br />

|        Parameters         ||
|----------|-----------------|
| `cipher` | `Cipher` <br /> |

### FingerprintManagerCompat.CryptoObject

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
FingerprintManagerCompat.CryptoObject (Mac mac)
```

<br />

<br />

|     Parameters      ||
|-------|--------------|
| `mac` | `Mac` <br /> |

## Public methods

### getCipher

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Cipher getCipher ()
```

Get[Cipher](https://developer.android.com/reference/javax/crypto/Cipher)object.

<br />

|                                                              Returns                                                              ||
|----------|-------------------------------------------------------------------------------------------------------------------------|
| `Cipher` | [Cipher](https://developer.android.com/reference/javax/crypto/Cipher)object or null if this doesn't contain one. <br /> |

### getMac

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Mac getMac ()
```

Get[Mac](https://developer.android.com/reference/javax/crypto/Mac)object.

<br />

|                                                         Returns                                                          ||
|-------|-------------------------------------------------------------------------------------------------------------------|
| `Mac` | [Mac](https://developer.android.com/reference/javax/crypto/Mac)object or null if this doesn't contain one. <br /> |

### getSignature

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Signature getSignature ()
```

Get[Signature](https://developer.android.com/reference/java/security/Signature)object.

<br />

|                                                                   Returns                                                                   ||
|-------------|--------------------------------------------------------------------------------------------------------------------------------|
| `Signature` | [Signature](https://developer.android.com/reference/java/security/Signature)object or null if this doesn't contain one. <br /> |

-

  ## Classes

  - [FingerprintManagerCompat](https://developer.android.com/reference/android/support/v4/hardware/fingerprint/FingerprintManagerCompat)
  - [FingerprintManagerCompat.AuthenticationCallback](https://developer.android.com/reference/android/support/v4/hardware/fingerprint/FingerprintManagerCompat.AuthenticationCallback)
  - [FingerprintManagerCompat.AuthenticationResult](https://developer.android.com/reference/android/support/v4/hardware/fingerprint/FingerprintManagerCompat.AuthenticationResult)
  - [FingerprintManagerCompat.CryptoObject](https://developer.android.com/reference/android/support/v4/hardware/fingerprint/FingerprintManagerCompat.CryptoObject)