Class BCPBEKey

  • All Implemented Interfaces:
    java.io.Serializable, java.security.Key, javax.crypto.interfaces.PBEKey, javax.crypto.SecretKey, javax.security.auth.Destroyable

    public class BCPBEKey
    extends java.lang.Object
    implements javax.crypto.interfaces.PBEKey, javax.security.auth.Destroyable
    See Also:
    Serialized Form
    • Constructor Detail

      • BCPBEKey

        public BCPBEKey​(java.lang.String algorithm,
                        ASN1ObjectIdentifier oid,
                        int type,
                        int digest,
                        int keySize,
                        int ivSize,
                        javax.crypto.spec.PBEKeySpec pbeKeySpec,
                        CipherParameters param)
        Parameters:
        param -
      • BCPBEKey

        public BCPBEKey​(java.lang.String algName,
                        CipherParameters param)
    • Method Detail

      • 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
      • getIvSize

        public int getIvSize()
      • getPassword

        public char[] getPassword()
        Specified by:
        getPassword in interface javax.crypto.interfaces.PBEKey
      • getSalt

        public byte[] getSalt()
        Specified by:
        getSalt in interface javax.crypto.interfaces.PBEKey
      • getIterationCount

        public int getIterationCount()
        Specified by:
        getIterationCount in interface javax.crypto.interfaces.PBEKey
      • setTryWrongPKCS12Zero

        public void setTryWrongPKCS12Zero​(boolean tryWrong)
      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.security.auth.Destroyable
      • isDestroyed

        public boolean isDestroyed()
        Specified by:
        isDestroyed in interface javax.security.auth.Destroyable