Class BCPBEKey

    • Method Detail

      • getAlgorithm

        public String getAlgorithm()
        Description copied from interface: Key
        Returns the name of the algorithm of this key. If the algorithm is unknown, null is returned.
        Specified by:
        getAlgorithm in interface Key
        Returns:
        the name of the algorithm of this key or null if the algorithm is unknown.
      • getFormat

        public String getFormat()
        Description copied from interface: Key
        Returns the name of the format used to encode this key, or null if it can not be encoded.
        Specified by:
        getFormat in interface Key
        Returns:
        the name of the format used to encode this key, or null if it can not be encoded.
      • getEncoded

        public byte[] getEncoded()
        Description copied from interface: Key
        Returns the encoded form of this key, or null if encoding is not supported by this key.
        Specified by:
        getEncoded in interface Key
        Returns:
        the encoded form of this key, or null if encoding is not supported by this key.
      • getIvSize

        public int getIvSize()
      • getPassword

        public char[] getPassword()
        Description copied from interface: PBEKey
        Returns a copy to the password.
        Specified by:
        getPassword in interface PBEKey
        Returns:
        a copy to the password.
      • getSalt

        public byte[] getSalt()
        Description copied from interface: PBEKey
        Returns a copy of the salt data or null if not specified.
        Specified by:
        getSalt in interface PBEKey
        Returns:
        a copy of the salt data or null if not specified.
      • getIterationCount

        public int getIterationCount()
        Description copied from interface: PBEKey
        Returns the iteration count, 0 if not specified.
        Specified by:
        getIterationCount in interface PBEKey
        Returns:
        the iteration count, 0 if not specified.
      • setTryWrongPKCS12Zero

        public void setTryWrongPKCS12Zero​(boolean tryWrong)