webfunds.sox
Class ServerKeyReply

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

public class ServerKeyReply
extends BasicReply

See Also:
Serialized Form

Field Summary
protected  java.security.cert.Certificate cert
          The certificate contained in the reply
 
Constructor Summary
ServerKeyReply(byte[] data)
           
ServerKeyReply(java.security.cert.Certificate cert)
          Create a reply containing a comms key
ServerKeyReply(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

ServerKeyReply

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

ServerKeyReply

public ServerKeyReply(byte[] data)
               throws SOXPacketException

ServerKeyReply

public ServerKeyReply(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