|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openorb.orb.csiv2.CSISeciopSecTrans
public final class CSISeciopSecTrans
This is a convenience wrapper around the SECIOP_SEC_TRANS
class.
It provides helper methods to retrieve all data from the
SECIOP_SEC_TRANS
class in an easy way.
Method Summary | |
---|---|
static CSISeciopSecTrans |
create(org.omg.IOP.Codec codec,
byte[] data)
This method just wraps this class around an instance of type SECIOP_SEC_TRANS that is decoded from the specified byte array. |
static CSISeciopSecTrans |
create(org.omg.IOP.Codec codec,
SECIOP_SEC_TRANS sst)
This method just wraps this class around the specified instance of type SECIOP_SEC_TRANS . |
static CSISeciopSecTrans |
create(org.omg.IOP.Codec codec,
short target_supports,
short target_requires,
java.lang.String mech_oid,
java.lang.String target_name,
TransportAddress[] addresses)
This method creates a SECIOP_SEC_TRANS struct. |
byte[] |
getEncoded(org.omg.CORBA.ORB orb)
Return the SECIOP_SEC_TRANS instance embedded into an
Any and GIOP encoded as byte array. |
SECIOP_SEC_TRANS |
getInternal()
Return the internal member which this class wraps. |
byte[] |
getMechOid()
Return the SECIOP_SEC_TRANS.mech_oid member as byte array. |
java.lang.String |
getMechOidString()
Return the stringified mechanism oid. |
byte[] |
getTargetName()
Return the SECIOP_SEC_TRANS.target_name member as gss name token. |
java.lang.String |
getTargetNameString()
Return the actual name from the gss name token. |
short |
getTargetRequires()
Return the bit field of the SECIOP_SEC_TRANS.target_requires
member or -1 if the SECIOP_SEC_TRANS member of this class is not set. |
java.lang.String |
getTargetRequiresString()
Returns a textual representation of the SECIOP_SEC_TRANS.target_requires
bit field. |
short |
getTargetSupports()
Return the bit field of the SECIOP_SEC_TRANS.target_supports
member or -1 if the SECIOP_SEC_TRANS member of this class is not set. |
java.lang.String |
getTargetSupportsString()
Returns a textual representation of the SECIOP_SEC_TRANS.target_supports
bit field. |
TransportAddress |
getTransportAddress(int index)
Return an item of the SECIOP_SEC_TRANS.addresses sequence. |
int |
getTransportAddressCount()
Return the number of addresses provided by the SECIOP_SEC_TRANS.addresses field. |
java.lang.String |
getTransportAddressHostName(int index)
Return the host name of an item of the SECIOP_SEC_TRANS.addresses
sequence. |
int |
getTransportAddressPort(int index)
Return the port of an item of the SECIOP_SEC_TRANS.addresses sequence. |
java.lang.String |
toString()
This method creates a stringified representation of the class SECIOP_SEC_TRANS . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static CSISeciopSecTrans create(org.omg.IOP.Codec codec, SECIOP_SEC_TRANS sst)
SECIOP_SEC_TRANS
.
codec
- The codec to be used for GIOP encoding and decoding.sst
- The instance of type SECIOP_SEC_TRANS
this class
is a wrapper for.
SECIOP_SEC_TRANS
.public static CSISeciopSecTrans create(org.omg.IOP.Codec codec, byte[] data)
SECIOP_SEC_TRANS
that is decoded from the specified byte array.
codec
- The codec to be used for GIOP encoding and decoding.data
- The byte array containing a encoded instance of type
SECIOP_SEC_TRANS
.
SECIOP_SEC_TRANS
or null in case the decoding of the
data failed.public static CSISeciopSecTrans create(org.omg.IOP.Codec codec, short target_supports, short target_requires, java.lang.String mech_oid, java.lang.String target_name, TransportAddress[] addresses)
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.mech_oid
- The mechanism oid.target_name
- The authentication domain of the target.addresses
- The list of hostnames and ports.
SECIOP_SEC_TRANS
or null in case the encoding
of the OID failed.public SECIOP_SEC_TRANS getInternal()
SECIOP_SEC_TRANS
.public byte[] getEncoded(org.omg.CORBA.ORB orb)
SECIOP_SEC_TRANS
instance embedded into an
Any
and GIOP encoded as byte array.
Any
or null in case the wrapped member has not been set.public short getTargetSupports()
SECIOP_SEC_TRANS.target_supports
member or -1 if the SECIOP_SEC_TRANS
member of this class is not set.
SECIOP_SEC_TRANS.target_supports
bit field or -1 when
the SECIOP_SEC_TRANS
member of this class has not been set.public java.lang.String getTargetSupportsString()
SECIOP_SEC_TRANS.target_supports
bit field. This method simply concatenates the names of the bits by a comma.
SECIOP_SEC_TRANS
member of this class has not been set.public short getTargetRequires()
SECIOP_SEC_TRANS.target_requires
member or -1 if the SECIOP_SEC_TRANS
member of this class is not set.
SECIOP_SEC_TRANS.target_requires
bit field or -1 when
the SECIOP_SEC_TRANS
member of this class has not been set.public java.lang.String getTargetRequiresString()
SECIOP_SEC_TRANS.target_requires
bit field. This method simply concatenates the names of the bits by a comma.
SECIOP_SEC_TRANS
member of this class has not been set.public byte[] getMechOid()
SECIOP_SEC_TRANS.mech_oid
member as byte array.
SECIOP_SEC_TRANS.mech_oid
member or null when the
SECIOP_SEC_TRANS
member of this class has not been set.public java.lang.String getMechOidString()
SECIOP_SEC_TRANS.mech_oid
member or null when the
SECIOP_SEC_TRANS
member of this class has not been set.public byte[] getTargetName()
SECIOP_SEC_TRANS.target_name
member as gss name token.
SECIOP_SEC_TRANS.target_name
or null when the
SECIOP_SEC_TRANS
member of this class has not been set.public java.lang.String getTargetNameString()
SECIOP_SEC_TRANS.target_name
or null when the
SECIOP_SEC_TRANS
member of this class has not been set.public int getTransportAddressCount()
SECIOP_SEC_TRANS.addresses
field.
SECIOP_SEC_TRANS
member of this class has not been set.public TransportAddress getTransportAddress(int index)
SECIOP_SEC_TRANS.addresses
sequence.
index
- The index of the item to return.
TransportAddress
or null
when the array index is out of bounds or the SECIOP_SEC_TRANS
member
of this class has not been set.public java.lang.String getTransportAddressHostName(int index)
SECIOP_SEC_TRANS.addresses
sequence.
index
- The index of the item from which to return the name.
TransportAddress.host_name
member of the
item specified by the index or null when the array index is out of bounds or the
SECIOP_SEC_TRANS
member of this class has not been set.public int getTransportAddressPort(int index)
SECIOP_SEC_TRANS.addresses
sequence.
index
- The index of the item from which to return the port.
TransportAddress.port
member of the
item specified by the index or -1 when the array index is out of bounds or the
SECIOP_SEC_TRANS
member of this class has not been set.public java.lang.String toString()
SECIOP_SEC_TRANS
.
toString
in class java.lang.Object
SECIOP_SEC_TRANS
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |