# PBEKey

public interface **PBEKey** implements [SecretKey](https://developers.google.com/j2objc/javadoc/jre/reference/javax/crypto/SecretKey.html) The interface to a PBE key.

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/javax/crypto/spec/PBEKeySpec.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/javax/crypto/SecretKey.html`

### Constant Summary

|---|---|---|
| long | [serialVersionUID](https://developers.google.com/j2objc/javadoc/jre/reference/javax/crypto/interfaces/PBEKey.html#serialVersionUID) | The class fingerprint that is set to indicate serialization compatibility since J2SE 1.4. |

### Inherited Constant Summary

From interface [javax.crypto.SecretKey](https://developers.google.com/j2objc/javadoc/jre/reference/javax/crypto/SecretKey.html)

|---|---|---|
| long | [serialVersionUID](https://developers.google.com/j2objc/javadoc/jre/reference/javax/crypto/SecretKey.html#serialVersionUID) | The class fingerprint that is set to indicate serialization compatibility since J2SE 1.4. |

From interface [java.security.Key](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Key.html)

|---|---|---|
| long | [serialVersionUID](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Key.html#serialVersionUID) | The class fingerprint that is set to indicate serialization compatibility with a previous version of the class. |

### Public Method Summary

|---|---|
| abstract int | [getIterationCount](https://developers.google.com/j2objc/javadoc/jre/reference/javax/crypto/interfaces/PBEKey.html#getIterationCount())() Returns the iteration count or 0 if not specified. |
| abstract char\[\] | [getPassword](https://developers.google.com/j2objc/javadoc/jre/reference/javax/crypto/interfaces/PBEKey.html#getPassword())() Returns the password. |
| abstract byte\[\] | [getSalt](https://developers.google.com/j2objc/javadoc/jre/reference/javax/crypto/interfaces/PBEKey.html#getSalt())() Returns the salt or null if not specified. |

### Inherited Method Summary

From interface [java.security.Key](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Key.html)

|---|---|
| abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getAlgorithm](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Key.html#getAlgorithm())() Returns the standard algorithm name for this key. |
| abstract byte\[\] | [getEncoded](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Key.html#getEncoded())() Returns the key in its primary encoding format, or null if this key does not support encoding. |
| abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getFormat](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Key.html#getFormat())() Returns the name of the primary encoding format of this key, or null if this key does not support encoding. |

From interface [javax.security.auth.Destroyable](https://developers.google.com/j2objc/javadoc/jre/reference/javax/security/auth/Destroyable.html)

|---|---|
| void | [destroy](https://developers.google.com/j2objc/javadoc/jre/reference/javax/security/auth/Destroyable.html#destroy())() Destroy this `Object`. |
| boolean | [isDestroyed](https://developers.google.com/j2objc/javadoc/jre/reference/javax/security/auth/Destroyable.html#isDestroyed())() Determine if this `Object` has been destroyed. |

## Constants

#### public static final long
**serialVersionUID**

The class fingerprint that is set to indicate serialization
compatibility since J2SE 1.4.
Constant Value: -1430015993304333921

## Public Methods

#### public abstract int
**getIterationCount**
()

Returns the iteration count or 0 if not specified.

##### Returns

- the iteration count.

#### public abstract char\[\]
**getPassword**
()

Returns the password.

Note: this method should return a copy of the password. It is
the caller's responsibility to zero out the password information after
it is no longer needed.

##### Returns

- the password.

#### public abstract byte\[\]
**getSalt**
()

Returns the salt or null if not specified.

Note: this method should return a copy of the salt. It is
the caller's responsibility to zero out the salt information after
it is no longer needed.

##### Returns

- the salt.