com.ibm.cryptobeans
Class MessageWrapper

java.lang.Object
  |
  +--com.ibm.processingbean.ProcessingBean
        |
        +--com.ibm.cryptobeans.CryptoTransformation
              |
              +--com.ibm.cryptobeans.MessageWrapper

public class MessageWrapper
extends CryptoTransformation

This class (together with MessageUnwrapper) extends the functionality of PBEncryptor. These classes provide both convenient password-based encryption scheme and data integrity check. MessageWrapper reads the source data (and the password) and wraps it into the output message of a special format. The main blocks of the output message are:
- the hash value of the secret key;
- the secret key ciphered with the password-based encryption;
- the source message ciphered with the secret key;
- the hash value of the source message.

See Also:
Serialized Form

Constructor Summary
MessageWrapper()
          The default constructor for the MessageWrapper class.
 
Method Summary
 java.lang.String getAboutThisBean()
          Returns a special formatted string intended for use by the editor of this property.
 java.lang.String getCipherAlgorithmType()
          Gets the cipherAlgorithmType property (java.lang.String) value.
 int getCipherKeySize()
          Gets the cipherKeySize property (int) value.
 java.lang.String getCipherProviderName()
          Gets the cipherProviderName property (java.lang.String) value.
 java.lang.String getDescription()
          Gets the description property (java.lang.String) value.
 java.lang.String getHashAlgorithmType()
          Gets the hashAlgorithmType property (java.lang.String) value.
 java.lang.String getHashProviderName()
          Gets the hashProviderName property (java.lang.String) value.
 char[] getInputPassword()
          Gets the inputPassword property (char[]) value.
 java.lang.String getPbCipherAlgorithmType()
          Gets the pbCipherAlgorithmType property (java.lang.String) value.
 java.lang.String getPbCipherProviderName()
          Gets the pbCipherProviderName property (java.lang.String) value.
 void setAboutThisBean(java.lang.String aboutThisBean)
          Sets the aboutThisBean property (java.lang.String) value.
 void setCipherAlgorithmType(java.lang.String cipherAlgorithmType)
          Sets the cipherAlgorithmType property (java.lang.String) value.
 void setCipherKeySize(int cipherKeySize)
          Sets the cipherKeySize property (int) value.
 void setCipherProviderName(java.lang.String cipherProviderName)
          Sets the cipherProviderName property (java.lang.String) value.
 void setDescription(java.lang.String description)
          Sets the description property (java.lang.String) value.
 void setHashAlgorithmType(java.lang.String hashAlgorithmType)
          Sets the hashAlgorithmType property (java.lang.String) value.
 void setHashProviderName(java.lang.String hashProviderName)
          Sets the hashProviderName property (java.lang.String) value.
 void setInputPassword(char[] inputPassword)
          Sets the inputPassword property (char[]) value.
 void setPbCipherAlgorithmType(java.lang.String pbCipherAlgorithmType)
          Sets the pbCipherAlgorithmType property (java.lang.String) value.
 void setPbCipherProviderName(java.lang.String pbCipherProviderName)
          Sets the pbCipherProviderName property (java.lang.String) value.
 
Methods inherited from class com.ibm.cryptobeans.CryptoTransformation
addCryptoTransformationErrorListener, addIOErrorListener, getAlgorithmType, getInputSourceFileName, getInputTransformedFileName, getProviderName, getTransformedPercent, removeCryptoTransformationErrorListener, removeIOErrorListener, setAlgorithmType, setInputSourceFileName, setInputTransformedFileName, setProviderName, triggerAction
 
Methods inherited from class com.ibm.processingbean.ProcessingBean
addActionErrorListener, addFetchArgumentsListener, addPropertyChangeListener, addTriggerNextActionListener, removeActionErrorListener, removeFetchArgumentsListener, removePropertyChangeListener, removeTriggerNextActionListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageWrapper

public MessageWrapper()
The default constructor for the MessageWrapper class.
Method Detail

getCipherAlgorithmType

public java.lang.String getCipherAlgorithmType()
Gets the cipherAlgorithmType property (java.lang.String) value.
Returns:
The cipherAlgorithmType property value.
See Also:
setCipherAlgorithmType(java.lang.String)

getCipherKeySize

public int getCipherKeySize()
Gets the cipherKeySize property (int) value.
Returns:
The cipherKeySize property value.
See Also:
setCipherKeySize(int)

getCipherProviderName

public java.lang.String getCipherProviderName()
Gets the cipherProviderName property (java.lang.String) value.
Returns:
The cipherProviderName property value.
See Also:
setCipherProviderName(java.lang.String)

getDescription

public java.lang.String getDescription()
Gets the description property (java.lang.String) value.
Returns:
The description property value.
See Also:
setDescription(java.lang.String)

getHashAlgorithmType

public java.lang.String getHashAlgorithmType()
Gets the hashAlgorithmType property (java.lang.String) value.
Returns:
The hashAlgorithmType property value.
See Also:
setHashAlgorithmType(java.lang.String)

getHashProviderName

public java.lang.String getHashProviderName()
Gets the hashProviderName property (java.lang.String) value.
Returns:
The hashProviderName property value.
See Also:
setHashProviderName(java.lang.String)

getInputPassword

public char[] getInputPassword()
Gets the inputPassword property (char[]) value.
Returns:
The inputPassword property value.
See Also:
setInputPassword(char[])

setCipherAlgorithmType

public void setCipherAlgorithmType(java.lang.String cipherAlgorithmType)
Sets the cipherAlgorithmType property (java.lang.String) value.
Parameters:
cipherAlgorithmType - The new value for the property.
See Also:
getCipherAlgorithmType()

setCipherKeySize

public void setCipherKeySize(int cipherKeySize)
Sets the cipherKeySize property (int) value.
Parameters:
cipherKeySize - The new value for the property.
See Also:
getCipherKeySize()

setCipherProviderName

public void setCipherProviderName(java.lang.String cipherProviderName)
Sets the cipherProviderName property (java.lang.String) value.
Parameters:
cipherProviderName - The new value for the property.
See Also:
getCipherProviderName()

setDescription

public void setDescription(java.lang.String description)
Sets the description property (java.lang.String) value.
Parameters:
description - The new value for the property.
See Also:
getDescription()

setHashAlgorithmType

public void setHashAlgorithmType(java.lang.String hashAlgorithmType)
Sets the hashAlgorithmType property (java.lang.String) value.
Parameters:
hashAlgorithmType - The new value for the property.
See Also:
getHashAlgorithmType()

setHashProviderName

public void setHashProviderName(java.lang.String hashProviderName)
Sets the hashProviderName property (java.lang.String) value.
Parameters:
hashProviderName - The new value for the property.
See Also:
getHashProviderName()

setInputPassword

public void setInputPassword(char[] inputPassword)
Sets the inputPassword property (char[]) value.
Parameters:
inputPassword - The new value for the property.
See Also:
getInputPassword()

getPbCipherAlgorithmType

public java.lang.String getPbCipherAlgorithmType()
Gets the pbCipherAlgorithmType property (java.lang.String) value.
Returns:
The pbCipherAlgorithmType property value.
See Also:
setPbCipherAlgorithmType(java.lang.String)

getPbCipherProviderName

public java.lang.String getPbCipherProviderName()
Gets the pbCipherProviderName property (java.lang.String) value.
Returns:
The pbCipherProviderName property value.
See Also:
setPbCipherProviderName(java.lang.String)

setPbCipherAlgorithmType

public void setPbCipherAlgorithmType(java.lang.String pbCipherAlgorithmType)
Sets the pbCipherAlgorithmType property (java.lang.String) value.
Parameters:
pbCipherAlgorithmType - The new value for the property.
See Also:
getPbCipherAlgorithmType()

setPbCipherProviderName

public void setPbCipherProviderName(java.lang.String pbCipherProviderName)
Sets the pbCipherProviderName property (java.lang.String) value.
Parameters:
pbCipherProviderName - The new value for the property.
See Also:
getPbCipherProviderName()

getAboutThisBean

public java.lang.String getAboutThisBean()
Returns a special formatted string intended for use by the editor of this property.
Returns:
the special formatted string for use by the editor of this property

setAboutThisBean

public void setAboutThisBean(java.lang.String aboutThisBean)
Sets the aboutThisBean property (java.lang.String) value.
Parameters:
aboutThisBean - The new value for the property.
See Also:
getAboutThisBean()