|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.processingbean.ProcessingBean | +--com.ibm.cryptobeans.CryptoTransformation | +--com.ibm.cryptobeans.MessageUnwrapper
This class (together with MessageWrapper) 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.
MessageUnwrapper tries to unwrap the file, which name is defined in the inputSourceFileName
property.
It checks the password entered by the user and fires the incorrectPassword
event if the password
is wrong. It also provides data integrity check by means of recalculating the message hash function value. If this
hash value differs from the value in the wrapped file thecontentsCorrupted
event is fired.
Constructor Summary | |
MessageUnwrapper()
The default constructor for the MessageUnwrapper class. |
Method Summary | |
void |
addContentsCorruptedListener(ContentsCorruptedListener newListener)
This method adds a new contentsCorrupted event listener
to the listeners list. |
void |
addIncorrectPasswordListener(IncorrectPasswordListener newListener)
This method adds a new incorrectPassword event listener
to the listeners list. |
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. |
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 |
removeContentsCorruptedListener(ContentsCorruptedListener newListener)
Removes ContentsCorruptedListener from the listeners list. |
void |
removeIncorrectPasswordListener(IncorrectPasswordListener newListener)
Removes IncorrectPasswordListener from the listeners list. |
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 |
setCipherProviderName(java.lang.String cipherProviderName)
Sets the cipherProviderName 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.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 |
public MessageUnwrapper()
MessageUnwrapper
class.Method Detail |
public void addContentsCorruptedListener(ContentsCorruptedListener newListener)
contentsCorrupted
event listener
to the listeners list.newListener
- com.ibm.cryptobeans.events.ContentsCorruptedListener.public void addIncorrectPasswordListener(IncorrectPasswordListener newListener)
incorrectPassword
event listener
to the listeners list.newListener
- com.ibm.cryptobeans.events.IncorrectPasswordListener.public java.lang.String getCipherAlgorithmType()
setCipherAlgorithmType(java.lang.String)
public java.lang.String getCipherProviderName()
setCipherProviderName(java.lang.String)
public java.lang.String getDescription()
#setDescription
public java.lang.String getHashAlgorithmType()
setHashAlgorithmType(java.lang.String)
public java.lang.String getHashProviderName()
setHashProviderName(java.lang.String)
public char[] getInputPassword()
setInputPassword(char[])
public void removeContentsCorruptedListener(ContentsCorruptedListener newListener)
newListener
- The ContentsCorruptedListener to be removed.ContentsCorruptedListener
public void removeIncorrectPasswordListener(IncorrectPasswordListener newListener)
newListener
- The IncorrectPasswordListener to be removed.ContentsCorruptedListener
public void setCipherAlgorithmType(java.lang.String cipherAlgorithmType)
cipherAlgorithmType
- The new value for the property.getCipherAlgorithmType()
public void setCipherProviderName(java.lang.String cipherProviderName)
cipherProviderName
- The new value for the property.getCipherProviderName()
public void setHashAlgorithmType(java.lang.String hashAlgorithmType)
hashAlgorithmType
- The new value for the property.getHashAlgorithmType()
public void setHashProviderName(java.lang.String hashProviderName)
hashProviderName
- The new value for the property.getHashProviderName()
public void setInputPassword(char[] inputPassword)
inputPassword
- The new value for the property.getInputPassword()
public java.lang.String getPbCipherAlgorithmType()
setPbCipherAlgorithmType(java.lang.String)
public java.lang.String getPbCipherProviderName()
setPbCipherProviderName(java.lang.String)
public void setPbCipherAlgorithmType(java.lang.String pbCipherAlgorithmType)
pbCipherAlgorithmType
- The new value for the property.getPbCipherAlgorithmType()
public void setPbCipherProviderName(java.lang.String pbCipherProviderName)
pbCipherProviderName
- The new value for the property.getPbCipherProviderName()
public java.lang.String getAboutThisBean()
public void setAboutThisBean(java.lang.String aboutThisBean)
aboutThisBean
- The new value for the property.getAboutThisBean()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |