Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Methods](https://developer.android.com/reference/java/security/DrbgParameters.Instantiation#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/java/security/DrbgParameters.Instantiation#inhmethods)

# DrbgParameters.Instantiation


`
public
static
final

class
DrbgParameters.Instantiation
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


implements

https://developer.android.com/reference/java/security/SecureRandomParameters


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | java.security.DrbgParameters.Instantiation |

<br />

*** ** * ** ***

DRBG parameters for instantiation.


When used in
`https://developer.android.com/reference/java/security/SecureRandom#getInstance(java.lang.String,%20java.security.SecureRandomParameters)`
or one of the other similar `getInstance` calls that take a
`SecureRandomParameters` parameter, it means the
requested instantiate parameters the newly created `SecureRandom`
object must minimally support. When used as the return value of the
`https://developer.android.com/reference/java/security/SecureRandom#getParameters()` method, it means the effective
instantiate parameters of the `SecureRandom` object.

## Summary

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/java/security/DrbgParameters.Capability` | ` https://developer.android.com/reference/java/security/DrbgParameters.Instantiation#getCapability()() ` Returns the capability. |
| ` byte[]` | ` https://developer.android.com/reference/java/security/DrbgParameters.Instantiation#getPersonalizationString()() ` Returns the personalization string as a byte array. |
| ` int` | ` https://developer.android.com/reference/java/security/DrbgParameters.Instantiation#getStrength()() ` Returns the security strength in bits. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/security/DrbgParameters.Instantiation#toString()() ` Returns a Human-readable string representation of this `Instantiation`. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||

## Public methods

### getCapability

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public DrbgParameters.Capability getCapability ()
```

Returns the capability.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/security/DrbgParameters.Capability` | If used in `getInstance`, returns the minimum capability requested. If used in `getParameters`, returns information on the effective prediction resistance flag and whether it supports reseeding. <br /> |

### getPersonalizationString

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public byte[] getPersonalizationString ()
```

Returns the personalization string as a byte array.

<br />

| Returns ||
|---|---|
| `byte[]` | If used in `getInstance`, returns the requested personalization string as a newly allocated array, or `null` if no personalization string is requested. The same string should be returned in `getParameters` as a new copy, or `null` if no personalization string is requested in `getInstance`. <br /> |

### getStrength

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getStrength ()
```

Returns the security strength in bits.

<br />

| Returns ||
|---|---|
| `int` | If used in `getInstance`, returns the minimum strength requested, or -1 if there is no specific request on the strength. If used in `getParameters`, returns the effective strength. The effective strength must be greater than or equal to the minimum strength requested. <br /> |

### toString

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String toString ()
```

Returns a Human-readable string representation of this
`Instantiation`.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | the string representation <br /> |