Class PbeCrypto

  • All Implemented Interfaces:
    PasswordCodec

    @Deprecated
    @Removal(version="4.0.0",
             message="This uses PBEWithSHA1AndDESede which is now cryptographically weak")
    public class PbeCrypto
    extends java.lang.Object
    Deprecated.
    deprecated since 3.11.1 since this uses PBEWithSHA1AndDESede which is a weak algorithm.
    • Constructor Summary

      Constructors 
      Constructor Description
      PbeCrypto()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean canHandle​(java.lang.String type)
      Deprecated.
      Can this implementation handle an encoded password of this type.
      java.lang.String decode​(java.lang.String encrypted)
      Invokes PasswordCodec.decode(String, String) with null as the charset parameter
      java.lang.String decode​(java.lang.String encrypted, java.lang.String charset)
      Deprecated.
      Show the plain text.
      java.lang.String encode​(java.lang.String plainText)
      Invokes PasswordCodec.encode(String, String) with null as the charset parameter
      java.lang.String encode​(java.lang.String plainText, java.lang.String charset)
      Deprecated.
      Obfuscate the plain text.
      protected java.lang.String getEncodingToUse​(java.lang.String encoding)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • canHandle

        public boolean canHandle​(java.lang.String type)
        Deprecated.
        Description copied from interface: PasswordCodec
        Can this implementation handle an encoded password of this type.
        Parameters:
        type - the type
        Returns:
        true or false.
      • decode

        public java.lang.String decode​(java.lang.String encrypted,
                                       java.lang.String charset)
                                throws PasswordException
        Deprecated.
        Description copied from interface: PasswordCodec
        Show the plain text.
        Parameters:
        encrypted - the encrypted password
        charset - the character set that should be used to create the resulting plain text password, if null uses UTF-8
        Returns:
        the plain text password
        Throws:
        PasswordException
      • encode

        public java.lang.String encode​(java.lang.String plainText,
                                       java.lang.String charset)
                                throws PasswordException
        Deprecated.
        Description copied from interface: PasswordCodec
        Obfuscate the plain text.
        Parameters:
        plainText - the text to obfuscate
        charset - the character set that should be used to create the resulting plain text password, if null uses UTF-8
        Returns:
        the obfuscated text.
        Throws:
        PasswordException
      • getEncodingToUse

        protected java.lang.String getEncodingToUse​(java.lang.String encoding)