|
Cryptix OpenPGP | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcryptix.message.Message
Top-level class for all messages.
Constructor Summary | |
protected |
Message(java.lang.String format)
Creates a Message of the specified format. |
Method Summary | |
boolean |
equals(java.lang.Object other)
Do equality comparison based on equality of the byte[]s returned by getEncoded(). |
abstract java.lang.Object |
getAttribute(java.lang.String name)
Get a format specific attribute. |
abstract byte[] |
getEncoded()
Returns the message in encoded format. |
java.lang.String |
getFormat()
Returns the encoding format of this message. |
int |
hashCode()
Returns a hashCode for this object based on the encoded form. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Message(java.lang.String format)
Method Detail |
public boolean equals(java.lang.Object other)
public int hashCode()
public java.lang.String getFormat()
Potential examples are:
public abstract byte[] getEncoded() throws MessageException
MessageException
- on a variety of format specific problems.public abstract java.lang.Object getAttribute(java.lang.String name) throws java.lang.IllegalArgumentException, MessageException
name
- a name identifying the attribute
java.lang.IllegalArgumentException
- if the attribute is not supported on
this format. (Note: if an attribute is supported but not set,
then this method should return null instead of throwing this
exception.)
MessageException
- on a variety of format specific problems.
|
Cryptix OpenPGP | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |