Constructor and Description |
---|
SimpleOutput(int i,
byte[] b) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAsString()
Return the internal message, either encrypted or decrypted.
|
java.lang.String |
getAsString(java.lang.String charset)
Return the internal message, either encrypted or decrypted.
|
byte[] |
getBytes()
Return the internal message, either encrypted or decrypted.
|
int |
getType()
Return the type of message this is, encrypted, plain, signed.
|
boolean |
isEncrypted()
isEncrypted.
|
boolean |
isPlain()
isPlain.
|
boolean |
isSigned()
isSigned.
|
public byte[] getBytes() throws AdaptrisSecurityException
Output
This returns the raw bytes in the appropriate format, ready for writing to an OutputStream or further processing
getBytes
in interface Output
AdaptrisSecurityException
- for any errorOutput.getBytes()
public int getType()
Output
getType
in interface Output
Output.getType()
public boolean isEncrypted()
Output
isEncrypted
in interface Output
Output.isEncrypted()
public boolean isPlain()
Output
isPlain
in interface Output
Output.isPlain()
public boolean isSigned()
Output
isSigned
in interface Output
Output.isSigned()
public java.lang.String getAsString() throws AdaptrisSecurityException
Output
This will return a String (using the platform default encoding) in the appropriate format, ready for writing to an OutputStream or further processing
getAsString
in interface Output
AdaptrisSecurityException
- for any errorOutput.getAsString()
public java.lang.String getAsString(java.lang.String charset) throws AdaptrisSecurityException, java.io.UnsupportedEncodingException
Output
This will return a String (using the specified encoding) in the appropriate format, ready for writing to an OutputStream or further processing
getAsString
in interface Output
charset
- the encodingAdaptrisSecurityException
- wrapping any other underlying exceptionjava.io.UnsupportedEncodingException
- if the encoding type is not supported.Output.getAsString(java.lang.String)