|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openorb.orb.csiv2.CSICompoundSecMechList
public final class CSICompoundSecMechList
This is a convenience wrapper class around the CompoundSecMechList
class. It provides helper methods to retrieve all data from the
CompoundSecMechList
class in an easy way.
Method Summary | |
---|---|
static CSICompoundSecMechList |
create(org.omg.IOP.Codec codec,
byte[] data)
Decode a CORBA Any from the byte array and extract a CompoundSecMechList instance from them CORBA Any. |
static CSICompoundSecMechList |
create(org.omg.IOP.Codec codec,
CompoundSecMechList csml)
This method just wraps this class around an instance of type CompoundSecMechList . |
static CSICompoundSecMechList |
create(org.omg.CORBA.ORB orb,
org.omg.IOP.Codec codec,
CSITlsSecTrans ssl_trans,
short as_target_supports,
short as_target_requires,
java.lang.String realm,
short sas_target_supports,
int sas_identity_types)
This method creates an instance of type CompoundSecMechList and
wraps this class around. |
AS_ContextSec |
getASContextSec(int index)
Return the AS_ContextSec instance. |
byte[] |
getASContextSecClientAuthenticationMech(int index)
Return the authentication mechanism oid as byte array. |
java.lang.String |
getASContextSecClientAuthenticationMechString(int index)
Return the authentication mechanism oid as string. |
byte[] |
getASContextSecTargetName(int index)
Return the target name as byte array. |
java.lang.String |
getASContextSecTargetNameString(int index)
Return the target name as string. |
short |
getASContextSecTargetRequires(int index)
Return the bit field from AS_ContextSec.target_requires of the
security mechanism specified by the index. |
java.lang.String |
getASContextSecTargetRequiresString(int index)
Return the a stringified representation of the bit field from AS_ContextSec.target_requires of the
security mechanism specified by the index. |
short |
getASContextSecTargetSupports(int index)
Return the bit field from AS_ContextSec.target_supports of the
security mechanism specified by the index. |
java.lang.String |
getASContextSecTargetSupportsString(int index)
Return the a stringified representation of the bit field from AS_ContextSec.target_supports of the
security mechanism specified by the index. |
byte[] |
getEncoded(org.omg.CORBA.ORB orb)
Return the GIOP encoded byte array of the instance this class is wrapping. |
CompoundSecMechList |
getInternal()
Return the instance this class is wrapping. |
static java.lang.String |
getOIDInfo(java.lang.String oid)
Return an info about the oid or UNKNOWN when the oid is not known. |
SAS_ContextSec |
getSASContextSec(int index)
Return the SAS_ContextSec instance. |
int |
getSASContextSecPrivilegeAuthoritiesCount(int index)
Return the number of privilege authorities for the specified security mechanism. |
ServiceConfiguration |
getSASContextSecPrivilegeAuthority(int index,
int auth_index)
Return a privilege authority from the given security mechanism. |
byte[] |
getSASContextSecPrivilegeAuthorityName(int index,
int auth_index)
Return the name field of a privilege authority from the given security mechanism. |
int |
getSASContextSecPrivilegeAuthoritySyntax(int index,
int auth_index)
Return the syntax field of a privilege authority from the given security mechanism. |
int |
getSASContextSecSupportedIdentityTypes(int index)
Return the supported identity types from the given security mechanism. |
java.lang.String |
getSASContextSecSupportedIdentityTypesString(int index)
Return a stringified representation of the supported identity types from the given security mechanism. |
byte[] |
getSASContextSecSupportedNamingMechanism(int index,
int mech_index)
Return a supported naming mechanism from the given security mechanism. |
int |
getSASContextSecSupportedNamingMechanismsCount(int index)
Return the number of supported naming mechanisms for the specified security mechanism. |
java.lang.String |
getSASContextSecSupportedNamingMechanismString(int index,
int mech_index)
Return a stringified representation of the supported naming mechanism from the given security mechanism. |
short |
getSASContextSecTargetRequires(int index)
Return the bit field from SAS_ContextSec.target_requires of the
security mechanism specified by the index. |
java.lang.String |
getSASContextSecTargetRequiresString(int index)
Return the a stringified representation of the bit field from SAS_ContextSec.target_requires of the
security mechanism specified by the index. |
short |
getSASContextSecTargetSupports(int index)
Return the bit field from SAS_ContextSec.target_supports of the
security mechanism specified by the index. |
java.lang.String |
getSASContextSecTargetSupportsString(int index)
Return the a stringified representation of the bit field from SAS_ContextSec.target_supports of the
security mechanism specified by the index. |
CSISeciopSecTrans |
getSeciopSecTrans(int index)
Wrap the SECIOP_SEC_TRANS component by the helper class
CSISeciopSecTrans . |
CompoundSecMech |
getSecMech(int index)
Return the security mechanism specified by the index. |
int |
getSecMechCount()
Return the number of security mechanisms. |
short |
getTargetRequires(int index)
Return the bit field from CompoundSecMech.target_requires of the
security mechanism specified by the index. |
java.lang.String |
getTargetRequiresString(int index)
Return the a stringified representation of the bit field from CompoundSecMech.target_requires of the
security mechanism specified by the index. |
CSITlsSecTrans |
getTlsSecTrans(int index)
Wrap the TLS_SEC_TRANS component by the helper class
CSITlsSecTrans . |
byte[] |
getTransportMechData(int index)
Return the transport byte array data for the specified security mechanism. |
java.lang.String |
getTransportMechDataString(int index)
Return a stringified representation of the transport data. |
int |
getTransportMechTag(int index)
Return the transport tag for the specified security mechanism. |
java.lang.String |
getTransportMechTagString(int index)
Return the transport tag string for the specified security mechanism. |
boolean |
isStateful()
Return whether the CSIv2 implementation supports stateful contexts or not. |
java.lang.String |
toString()
This method creates a stringified representation of the CompoundSecMechList class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static java.lang.String getOIDInfo(java.lang.String oid)
oid
- The oid to get some info for.
public static CSICompoundSecMechList create(org.omg.IOP.Codec codec, CompoundSecMechList csml)
CompoundSecMechList
.
codec
- The codec to be used for GIOP encoding and decoding.csml
- The instance of type CompoundSecMechList
this class
is a wrapper for.
CompoundSecMechList
.public static CSICompoundSecMechList create(org.omg.IOP.Codec codec, byte[] data)
CompoundSecMechList
instance from them CORBA Any.
codec
- The codec to use for decoding.data
- The byte array containing the encoded CORBA Any.
CompoundSecMechList
instance or
null in case an exception occurs.public static CSICompoundSecMechList create(org.omg.CORBA.ORB orb, org.omg.IOP.Codec codec, CSITlsSecTrans ssl_trans, short as_target_supports, short as_target_requires, java.lang.String realm, short sas_target_supports, int sas_identity_types)
CompoundSecMechList
and
wraps this class around. The parameters are the ones required for a CSIv2 Level 0 compliant
target.
orb
- The orb used for encoding the CSITlsSecTrans parameter.codec
- Used for GIOP encoding and decoding.as_target_supports
- The authentication association options the target supports.as_target_requires
- The authentication association options the target requires.realm
- The realm name of the target.sas_target_supports
- The security attribute layer association options the target
supports.sas_identity_types
- The identity types the target supports.
CompoundSecMechList
.public CompoundSecMechList getInternal()
CompoundSecMechList
.public byte[] getEncoded(org.omg.CORBA.ORB orb)
orb
- The ORB
to get the Any
from.
CompoundSecMechList
or null in case the decoding failed.public boolean isStateful()
public int getSecMechCount()
CompoundSecMechList
member of this class has not been set.public CompoundSecMech getSecMech(int index)
index
- The index of the security mechanism to return.
CompoundSecMech
or null when an ArrayIndexOutOfBoundException occured or when the
CompoundSecMechList
member of this class has not been set.public short getTargetRequires(int index)
CompoundSecMech.target_requires
of the
security mechanism specified by the index.
index
- The index of the security mechanism for which to return the bit field.
CompoundSecMech.target_requires
or -1 when an ArrayIndexOutOfBoundException occured or when the
CompoundSecMechList
member of this class has not been set.public java.lang.String getTargetRequiresString(int index)
CompoundSecMech.target_requires
of the
security mechanism specified by the index.
index
- The index of the security mechanism for which to return the bit field.
CompoundSecMech.target_requires
or null when an ArrayIndexOutOfBoundException occured or when the
CompoundSecMechList
member of this class has not been set.public int getTransportMechTag(int index)
index
- The security mechanism index.
public java.lang.String getTransportMechTagString(int index)
index
- The security mechanism index.
public byte[] getTransportMechData(int index)
index
- The security mechanism index.
public java.lang.String getTransportMechDataString(int index)
index
- The security mechanism index.
public CSISeciopSecTrans getSeciopSecTrans(int index)
SECIOP_SEC_TRANS
component by the helper class
CSISeciopSecTrans
.
index
- The security mechanism index.
CSISeciopSecTrans
wrapper.public CSITlsSecTrans getTlsSecTrans(int index)
TLS_SEC_TRANS
component by the helper class
CSITlsSecTrans
.
index
- The security mechanism index.
CSITlsSecTrans
wrapper.public AS_ContextSec getASContextSec(int index)
AS_ContextSec
instance.
index
- The security mechanism index.
AS_ContextSec
instance.public short getASContextSecTargetSupports(int index)
AS_ContextSec.target_supports
of the
security mechanism specified by the index.
index
- The index of the security mechanism for which to return the bit field.
AS_ContextSec.target_supports
or -1 when an ArrayIndexOutOfBoundException occured or when the
CompoundSecMechList
member of this class has not been set.public java.lang.String getASContextSecTargetSupportsString(int index)
AS_ContextSec.target_supports
of the
security mechanism specified by the index.
index
- The index of the security mechanism for which to return the bit field.
AS_ContextSec.target_supports
or null when an ArrayIndexOutOfBoundException occured or when the
CompoundSecMechList
member of this class has not been set.public short getASContextSecTargetRequires(int index)
AS_ContextSec.target_requires
of the
security mechanism specified by the index.
index
- The index of the security mechanism for which to return the bit field.
AS_ContextSec.target_requires
or -1 when an ArrayIndexOutOfBoundException occured or when the
CompoundSecMechList
member of this class has not been set.public java.lang.String getASContextSecTargetRequiresString(int index)
AS_ContextSec.target_requires
of the
security mechanism specified by the index.
index
- The index of the security mechanism for which to return the bit field.
AS_ContextSec.target_requires
or null when an ArrayIndexOutOfBoundException occured or when the
CompoundSecMechList
member of this class has not been set.public byte[] getASContextSecClientAuthenticationMech(int index)
index
- The index of the security mechanism.
public java.lang.String getASContextSecClientAuthenticationMechString(int index)
index
- The index of the security mechanism.
public byte[] getASContextSecTargetName(int index)
index
- The index of the security mechanism.
public java.lang.String getASContextSecTargetNameString(int index)
index
- The index of the security mechanism.
public SAS_ContextSec getSASContextSec(int index)
SAS_ContextSec
instance.
index
- The security mechanism index.
SAS_ContextSec
instance.public short getSASContextSecTargetSupports(int index)
SAS_ContextSec.target_supports
of the
security mechanism specified by the index.
index
- The index of the security mechanism for which to return the bit field.
SAS_ContextSec.target_supports
or -1 when an ArrayIndexOutOfBoundException occured or when the
CompoundSecMechList
member of this class has not been set.public java.lang.String getSASContextSecTargetSupportsString(int index)
SAS_ContextSec.target_supports
of the
security mechanism specified by the index.
index
- The index of the security mechanism for which to return the bit field.
SAS_ContextSec.target_supports
or null when an ArrayIndexOutOfBoundException occured or when the
CompoundSecMechList
member of this class has not been set.public short getSASContextSecTargetRequires(int index)
SAS_ContextSec.target_requires
of the
security mechanism specified by the index.
index
- The index of the security mechanism for which to return the bit field.
SAS_ContextSec.target_requires
or -1 when an ArrayIndexOutOfBoundException occured or when the
CompoundSecMechList
member of this class has not been set.public java.lang.String getSASContextSecTargetRequiresString(int index)
SAS_ContextSec.target_requires
of the
security mechanism specified by the index.
index
- The index of the security mechanism for which to return the bit field.
SAS_ContextSec.target_requires
or null when an ArrayIndexOutOfBoundException occured or when the
CompoundSecMechList
member of this class has not been set.public int getSASContextSecPrivilegeAuthoritiesCount(int index)
index
- The index of the security mechanism for which to return the
number of privilege authorities.
CompoundSecMechList
member of this class has not been set.public ServiceConfiguration getSASContextSecPrivilegeAuthority(int index, int auth_index)
index
- The index of the security mechanism for which to return
a privilege authority.auth_index
- The index of the privilege authority to return.
ServiceConfiguration
.public int getSASContextSecPrivilegeAuthoritySyntax(int index, int auth_index)
index
- The index of the security mechanism for which to return
a privilege authority.auth_index
- The index of the privilege authority to return.
ServiceConfiguration.syntax
.public byte[] getSASContextSecPrivilegeAuthorityName(int index, int auth_index)
index
- The index of the security mechanism for which to return
a privilege authority.auth_index
- The index of the privilege authority to return.
ServiceConfiguration.name
as
byte array.public int getSASContextSecSupportedNamingMechanismsCount(int index)
index
- The index of the security mechanism for which to return the
number of privilege authorities.
CompoundSecMechList
member of this class has not been set.public byte[] getSASContextSecSupportedNamingMechanism(int index, int mech_index)
index
- The index of the security mechanism for which to return
a privilege authority.mech_index
- The index of the naming mechanism to return.
public java.lang.String getSASContextSecSupportedNamingMechanismString(int index, int mech_index)
index
- The index of the security mechanism for which to return
a privilege authority.mech_index
- The index of the naming mechanism to return.
public int getSASContextSecSupportedIdentityTypes(int index)
index
- The index of the security mechanism for which to return
a privilege authority.
public java.lang.String getSASContextSecSupportedIdentityTypesString(int index)
index
- The index of the security mechanism for which to return
a privilege authority.
public java.lang.String toString()
CompoundSecMechList
class.
toString
in class java.lang.Object
CompoundSecMechList
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |