Class OpenPgpMessage

java.lang.Object
org.jivesoftware.smackx.ox.OpenPgpMessage

public class OpenPgpMessage extends Object
This class embodies a decrypted and/or verified OpenPgpElement.
The content can be one of the following three OpenPgpContentElements:

SignElement: The content is expected to be signed with the senders key, but unencrypted.
CryptElement: The content is expected to be encrypted, but not signed.
SigncryptElement: The content is expected to be signed with the senders key and encrypted.

To determine, of which nature the content of the message is, use getState(). You should utilize this information to cast the return value of getOpenPgpContentElement() correctly.
Use getMetadata() in order to get information about the messages encryption status, its signatures etc.