webfunds.sox
Class CommsKeyReply

java.lang.Object
  |
  +--webfunds.sox.Encodable
        |
        +--webfunds.sox.BasicReply
              |
              +--webfunds.sox.CommsKeyReply

public class CommsKeyReply
extends BasicReply

See Also:
Serialized Form

Field Summary
protected  java.security.cert.Certificate cert
          The certificate contained in the reply
 
Constructor Summary
CommsKeyReply(byte[] data)
           
CommsKeyReply(java.security.cert.Certificate cert)
          Create a reply containing a comms key
CommsKeyReply(java.io.InputStream is)
           
 
Method Summary
 void decode(java.io.InputStream is)
           
 void encode(java.io.OutputStream os)
           
 java.security.cert.Certificate getCertificate()
          Get the certificate.
 java.security.PublicKey getKey()
           
 java.lang.String toString()
           
 
Methods inherited from class webfunds.sox.Encodable
decode, encode, main, readByteArray, readCertificate, readProperties, readString, writeByteArray, writeCertificate, writeProperties, writeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cert

protected java.security.cert.Certificate cert
The certificate contained in the reply
Constructor Detail

CommsKeyReply

public CommsKeyReply(java.security.cert.Certificate cert)
Create a reply containing a comms key
Parameters:
cert - The comms key reply

CommsKeyReply

public CommsKeyReply(byte[] data)
              throws SOXPacketException

CommsKeyReply

public CommsKeyReply(java.io.InputStream is)
              throws java.io.IOException,
                     SOXPacketException
Method Detail

getCertificate

public java.security.cert.Certificate getCertificate()
Get the certificate.

getKey

public java.security.PublicKey getKey()

encode

public void encode(java.io.OutputStream os)
            throws java.io.IOException
Overrides:
encode in class Encodable

decode

public void decode(java.io.InputStream is)
            throws java.io.IOException,
                   SOXPacketException
Overrides:
decode in class Encodable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object