Class EncryptedInfo


  • public class EncryptedInfo
    extends java.lang.Object
    Return code information for password utilities, deciphering or enciphering.
    • Constructor Summary

      Constructors 
      Constructor Description
      EncryptedInfo​(byte[] encryptedBytes, java.lang.String keyAlias)
      This constructor takes the encrypted bytes and a keyAlias as parameters.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getEncryptedBytes()
      This returns the encrypted bytes.
      java.lang.String getKeyAlias()
      This returns the key alias.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EncryptedInfo

        public EncryptedInfo​(byte[] encryptedBytes,
                             java.lang.String keyAlias)
        This constructor takes the encrypted bytes and a keyAlias as parameters. This is for passing to/from the WebSphere Application Server runtime so the runtime can associate the bytes with a specific key used to encrypt the bytes.
        Parameters:
        encryptedBytes -
        keyAlias -
    • Method Detail

      • getEncryptedBytes

        public byte[] getEncryptedBytes()
        This returns the encrypted bytes.
        Returns:
        byte[]
      • getKeyAlias

        public java.lang.String getKeyAlias()
        This returns the key alias. This key alias is a logical string associated with the encrypted password in the model. The format is {custom:keyAlias}encrypted_password. Typically just the key alias is put here, but algorithm information could also be returned.
        Returns:
        String