com.ibm.wsspi.security.crypto

Class EncryptedInfo

  1. java.lang.Object
  2. extended bycom.ibm.wsspi.security.crypto.EncryptedInfo

  1. public class EncryptedInfo
  2. extends java.lang.Object

Constructor Summary

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

Method Summary

Modifier and Type Method and Description
  1. byte[]
getEncryptedBytes()
This returns the encrypted bytes.
  1. java.lang.String
getKeyAlias()
This returns the key alias.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

EncryptedInfo

  1. public EncryptedInfo(byte[] encryptedBytes,
  2. 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.

Method Detail

getEncryptedBytes

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

getKeyAlias

  1. 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