|
Oracle Fusion Middleware PKI SDK CMP Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10666-04 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.security.crypto.cmp.transport.TCPMessage
oracle.security.crypto.cmp.transport.ErrorTCPMsg
public class ErrorTCPMsg
| Nested Class Summary | |
|---|---|
static class |
ErrorTCPMsg.CodeError types consisting of a major category code and a minor error type code. |
| Nested classes/interfaces inherited from class oracle.security.crypto.cmp.transport.TCPMessage |
|---|
TCPMessage.Flag, TCPMessage.Type, TCPMessage.Version |
| Constructor Summary | |
|---|---|
ErrorTCPMsg(ErrorTCPMsg.Code errorType)Create a new ErrorTCPMsg with the given error type and the default version CMP2000. |
|
ErrorTCPMsg(java.io.InputStream is) |
|
ErrorTCPMsg(int pollRef)Create a new INVALID_POLL_ID ErrorTCPMsg with the given polling reference number and the default version CMP2000. |
|
ErrorTCPMsg(TCPMessage.Type msgType)Create a new INVALID_MESSAGE_TYPE ErrorTCPMsg with the given message type and the default version CMP2000. |
|
ErrorTCPMsg(TCPMessage.Version version, ErrorTCPMsg.Code errorType)Create a new ErrorTCPMsg with the given version and error type. |
|
ErrorTCPMsg(TCPMessage.Version version, int pollRef)Create a new INVALID_POLL_ID ErrorTCPMsg with the given version and polling reference number. |
|
ErrorTCPMsg(TCPMessage.Version version, TCPMessage.Type msgType)Create a new INVALID_MESSAGE_TYPE ErrorTCPMsg with the given version and message type. |
|
| Method Summary | |
|---|---|
ErrorTCPMsg.Code |
getCode()Returns the error code for this ErrorTCPMsg. |
byte[] |
getData()Returns the bytes of this ErrorTCPMsg's data. |
java.lang.String |
getText()Returns a user-readable error message. |
TCPMessage.Type |
getType()Get the TCP-based message type. |
void |
setText(java.lang.String text)Sets a user-readable error message. |
java.lang.String |
toString() |
| Methods inherited from class oracle.security.crypto.cmp.transport.TCPMessage |
|---|
getVersion, hasFlag, input, inputInstance, length, output, setFlag |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorTCPMsg(TCPMessage.Version version,
ErrorTCPMsg.Code errorType)
ErrorTCPMsg with the given version and error type. Use this constructor only for VERSION_NOT_SUPPORTED, GENERAL_CLIENT_ERROR or GENERAL_SERVER_ERROR.
version - the PKI TCP transport protocol version.errorType - the error type.public ErrorTCPMsg(ErrorTCPMsg.Code errorType)
ErrorTCPMsg with the given error type and the default version CMP2000. Use this constructor only for VERSION_NOT_SUPPORTED, GENERAL_CLIENT_ERROR or GENERAL_SERVER_ERROR.
errorType - the error type.
public ErrorTCPMsg(TCPMessage.Version version,
TCPMessage.Type msgType)
INVALID_MESSAGE_TYPE ErrorTCPMsg with the given version and message type.
version - the PKI TCP transport protocol version.msgType - for an INVALID_MESSAGE_TYPE error, the invalid message type in question.TCPMessage.getType()public ErrorTCPMsg(TCPMessage.Type msgType)
INVALID_MESSAGE_TYPE ErrorTCPMsg with the given message type and the default version CMP2000.
msgType - for an INVALID_MESSAGE_TYPE error, the invalid message type in question.TCPMessage.getType()
public ErrorTCPMsg(TCPMessage.Version version,
int pollRef)
INVALID_POLL_ID ErrorTCPMsg with the given version and polling reference number.
version - the PKI TCP transport protocol version.pollRef - for an INVALID_POLL_ID error, the polling reference in question.PollRequestTCPMsg.getPollRef()public ErrorTCPMsg(int pollRef)
INVALID_POLL_ID ErrorTCPMsg with the given polling reference number and the default version CMP2000.
pollRef - for an INVALID_POLL_ID error, the polling reference in question.PollRequestTCPMsg.getPollRef()
public ErrorTCPMsg(java.io.InputStream is)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public TCPMessage.Type getType()
TCPMessagegetType in class TCPMessagepublic ErrorTCPMsg.Code getCode()
ErrorTCPMsg.public byte[] getData()
ErrorTCPMsg's data. For example, in the case of a VERSION_NOT_SUPPORTED error, this would be the highest version number supported.public void setText(java.lang.String text)
public java.lang.String getText()
public java.lang.String toString()
toString in class java.lang.Object
|
Oracle Fusion Middleware PKI SDK CMP Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10666-04 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||