Class Password

java.lang.Object
com.adaptris.security.password.Password

public abstract class Password extends Object
Handles simple encryption and decryption of passwords that may be stored in XML configuration.
  • Field Details

    • MSCAPI_STYLE

      public static final String MSCAPI_STYLE
      Password obfuscation using Microsoft Crypto API which is only available on windows.

      Use of this means that the password is encrypted with the current username's private key and certificate.

      See Also:
    • PORTABLE_PASSWORD

      public static final String PORTABLE_PASSWORD
      Standard password style which is portable across environments.

      It is not considered especially secure, but is enough to stop casual interrogation

      See Also:
    • PORTABLE_PASSWORD_2

      public static final String PORTABLE_PASSWORD_2
      Standard password style which is portable across environments.

      It uses the Advanced Encryption Standard (AES) algorithm in Galois/Counter Mode (GCM) to perform the encryption. GCM has the benefit of providing authenticity (integrity) in addition to confidentiality.

      See Also:
    • SEEDED_BATCH

      public static final String SEEDED_BATCH
      Alternative password style which is portable across environments and machines if the seed file is present. Uses a similar password based encryption scheme to the deprecated/removed non-portable PBEWithSHA1AndDESede. This uses the more up-to-date and secure PBEWithHmacSHA256AndAES_128.
      See Also:
  • Constructor Details

    • Password

      public Password()
  • Method Details