core
Class MessageKeyT

java.lang.Object
  |
  +--core.Message
        |
        +--core.MessageT
              |
              +--core.MessageKeyT
All Implemented Interfaces:
IMessage, IMessageKey

public class MessageKeyT
extends MessageT
implements IMessageKey

Author:
Xavier Didelot

Field Summary
 
Fields inherited from class core.Message
 
Constructor Summary
MessageKeyT()
           
MessageKeyT(java.security.Key key)
           
MessageKeyT(Message msg)
           
MessageKeyT(java.lang.String algo)
           
 
Method Summary
 java.security.Key toKey()
          Convert this MessageKey into a Key
 
Methods inherited from class core.MessageT
decrypt, encrypt, getAllFields, getTag, getTag, getText, hash, removeTags, setString
 
Methods inherited from class core.Message
addMessage, clone, equals, getString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface core.IMessage
addMessage, decrypt, encrypt, equals, getAllFields, getString, hash, setString
 

Constructor Detail

MessageKeyT

public MessageKeyT()

MessageKeyT

public MessageKeyT(java.lang.String algo)
            throws java.io.IOException,
                   java.security.NoSuchAlgorithmException

MessageKeyT

public MessageKeyT(java.security.Key key)
            throws java.io.IOException

MessageKeyT

public MessageKeyT(Message msg)
Method Detail

toKey

public java.security.Key toKey()
                        throws java.lang.Exception
Description copied from interface: IMessageKey
Convert this MessageKey into a Key

Specified by:
toKey in interface IMessageKey
Returns:
the Key contained in this Message
Throws:
java.lang.Exception