org.openorb.orb.ssl
Class SSLSslSecTrans

java.lang.Object
  extended by org.openorb.orb.ssl.SSLSslSecTrans

public final class SSLSslSecTrans
extends java.lang.Object

This is a convenience wrapper around the SSL class. It provides helper methods to retrieve all data from the SSL class in an easy way.

Author:
Michael Rumpf

Method Summary
static SSLSslSecTrans create(org.omg.IOP.Codec codec, byte[] data)
          This method just wraps this class around an instance of type SSL that is decoded from the specified byte array.
static SSLSslSecTrans create(org.omg.IOP.Codec codec, short target_supports, short target_requires, int port)
          This method creates a SSL struct.
static SSLSslSecTrans create(org.omg.IOP.Codec codec, SSL ssl)
          This method just wraps this class around the specified instance of type SSL.
 byte[] getEncoded(org.omg.CORBA.ORB orb)
          Return the SSL instance embedded into an Any and GIOP encoded as byte array.
 SSL getInternal()
          Return the internal member which this class wraps.
 int getPort()
          Return the port number from SSL.port.
 short getTargetRequires()
          Return the bit field of the SSL.target_requires member or -1 if the SSL member of this class is not set.
 java.lang.String getTargetRequiresString()
          Returns a textual representation of the SSL.target_requires bit field.
 short getTargetSupports()
          Return the bit field of the SSL.target_supports member or -1 if the SSL member of this class is not set.
 java.lang.String getTargetSupportsString()
          Returns a textual representation of the SSL.target_supports bit field.
 java.lang.String toString()
          This method creates a stringified representation of the class SSL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static SSLSslSecTrans create(org.omg.IOP.Codec codec,
                                    SSL ssl)
This method just wraps this class around the specified instance of type SSL.

Parameters:
codec - The codec to be used for GIOP encoding and decoding.
ssl - The instance of type SSL this class is a wrapper for.
Returns:
An instance of this convenience wrapper with a member of type SSL.

create

public static SSLSslSecTrans create(org.omg.IOP.Codec codec,
                                    byte[] data)
This method just wraps this class around an instance of type SSL that is decoded from the specified byte array.

Parameters:
codec - The codec to be used for GIOP encoding and decoding.
data - The byte array containing a encoded instance of type SSL.
Returns:
An instance of this convenience wrapper with a member of type SSL or null in case the decoding of the data failed.

create

public static SSLSslSecTrans create(org.omg.IOP.Codec codec,
                                    short target_supports,
                                    short target_requires,
                                    int port)
This method creates a SSL struct.

Parameters:
codec - The codec used for GIOP encoding and decoding.
target_supports - The association options the target supports.
target_requires - The association options the target requires.
port - The port number.
Returns:
An instance of this convenience wrapper with a member of type SSL.

getInternal

public SSL getInternal()
Return the internal member which this class wraps.

Returns:
The internal member of type SSL.

getEncoded

public byte[] getEncoded(org.omg.CORBA.ORB orb)
Return the SSL instance embedded into an Any and GIOP encoded as byte array.

Returns:
A byte array containing an encoded instance of type Any or null in case the wrapped member has not been set.

getTargetSupports

public short getTargetSupports()
Return the bit field of the SSL.target_supports member or -1 if the SSL member of this class is not set.

Returns:
The SSL.target_supports bit field or -1 when the SSL member of this class has not been set.

getTargetSupportsString

public java.lang.String getTargetSupportsString()
Returns a textual representation of the SSL.target_supports bit field. This method simply concatenates the names of the bits by a comma.

Returns:
A string with concatenated bit names or null when the SSL member of this class has not been set.

getTargetRequires

public short getTargetRequires()
Return the bit field of the SSL.target_requires member or -1 if the SSL member of this class is not set.

Returns:
The SSL.target_requires bit field or -1 when the SSL member of this class has not been set.

getTargetRequiresString

public java.lang.String getTargetRequiresString()
Returns a textual representation of the SSL.target_requires bit field. This method simply concatenates the names of the bits by a comma.

Returns:
A string with concatenated bit names or null when the SSL member of this class has not been set.

getPort

public int getPort()
Return the port number from SSL.port.

Returns:
The content of the SSL.port member or -1 when the SSL member of this class has not been set.

toString

public java.lang.String toString()
This method creates a stringified representation of the class SSL.

Overrides:
toString in class java.lang.Object
Returns:
A string containing the information, provided by the class SSL.