public final class MakePrincipalMessage extends Message<MakePrincipalMessage.Response,FabricGeneralSecurityException>
| Modifier and Type | Class and Description |
|---|---|
static class |
MakePrincipalMessage.Response |
Message.MessageType, Message.NoException| Modifier and Type | Field and Description |
|---|---|
java.security.PublicKey |
requesterKey |
exceptionClass, messageType| Modifier | Constructor and Description |
|---|---|
protected |
MakePrincipalMessage(java.io.DataInput in) |
|
MakePrincipalMessage(java.security.PublicKey requesterKey) |
| Modifier and Type | Method and Description |
|---|---|
MakePrincipalMessage.Response |
dispatch(RemoteIdentity<RemoteWorker> client,
MessageHandler handler)
Visitor method.
|
protected MakePrincipalMessage.Response |
readResponse(java.io.DataInput in)
Creates a Response message of the appropriate type using the provided
DataOutput |
protected void |
writeMessage(java.io.DataOutput out)
Writes this message out on the given output stream.
|
protected void |
writeResponse(java.io.DataOutput out,
MakePrincipalMessage.Response response)
Writes a Response message of the appropriate type using the provided
DataOutput. |
readObject, readRef, receive, respond, respond, send, writeObject, writeRefpublic MakePrincipalMessage(java.security.PublicKey requesterKey)
protected MakePrincipalMessage(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionpublic MakePrincipalMessage.Response dispatch(RemoteIdentity<RemoteWorker> client, MessageHandler handler) throws ProtocolError, FabricGeneralSecurityException
Messagedispatch in class Message<MakePrincipalMessage.Response,FabricGeneralSecurityException>client - the node that is issuing the request.handler - the handler to which this message is to be dispatched.ProtocolErrorFabricGeneralSecurityExceptionprotected void writeMessage(java.io.DataOutput out)
throws java.io.IOException
MessagewriteMessage in class Message<MakePrincipalMessage.Response,FabricGeneralSecurityException>java.io.IOException - if the DataOutput fails.protected void writeResponse(java.io.DataOutput out,
MakePrincipalMessage.Response response)
throws java.io.IOException
MessageDataOutput.writeResponse in class Message<MakePrincipalMessage.Response,FabricGeneralSecurityException>java.io.IOException - if the DataOutput fails.protected MakePrincipalMessage.Response readResponse(java.io.DataInput in) throws java.io.IOException
MessageDataOutputreadResponse in class Message<MakePrincipalMessage.Response,FabricGeneralSecurityException>java.io.IOException - if the response is malformed, or if the DataInput
fails.