PKCS12Key (Bouncy Castle Library 1.52 API Specification)

org.bouncycastle.jcajce

## Class PKCS12Key

- java.lang.Object
- - org.bouncycastle.jcajce.PKCS12Key

- All Implemented Interfaces:
    java.io.Serializable, java.security.Key, javax.crypto.SecretKey
  Direct Known Subclasses:
    PKCS12KeyWithParameters

      public class PKCS12Key
      extends java.lang.Object
      implements javax.crypto.SecretKey

  See Also:
    Serialized Form

- - ### Field Summary

    - ### Fields inherited from interface javax.crypto.SecretKey

      `serialVersionUID`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `PKCS12Key(char[] password)` Basic constructor for a password based key - secret key generation parameters will be passed separately..

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getAlgorithm()`
    `byte[]` | `getEncoded()`
    `java.lang.String` | `getFormat()`
    `char[]` | `getPassword()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PKCS12Key

          public PKCS12Key(char[] password)

      Basic constructor for a password based key - secret key generation parameters will be passed separately..
      Parameters:
        `password` - password to use.

  - ### Method Detail

    - #### getPassword

          public char[] getPassword()

    - #### getAlgorithm

          public java.lang.String getAlgorithm()

      Specified by:
        `getAlgorithm` in interface `java.security.Key`

    - #### getFormat

          public java.lang.String getFormat()

      Specified by:
        `getFormat` in interface `java.security.Key`

    - #### getEncoded

          public byte[] getEncoded()

      Specified by:
        `getEncoded` in interface `java.security.Key`