|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.iiop.csiv2.CSIv2Util
Helper class
Method Summary | |
static AS_ContextSec |
createAuthenticationServiceContext(IorSecurityConfigMetaData (src) metadata)
Create the client Authentication Service (AS) context included in a CompoundSecMech definition. |
static CompoundSecMech[] |
createCompoundSecMechanisms(IorSecurityConfigMetaData (src) metadata,
org.omg.IOP.Codec codec,
int sslPort,
org.omg.CORBA.ORB orb)
Create a CSIIOP.CompoundSecMechanisms which is a sequence of CompoundSecMech. |
static org.omg.IOP.TaggedComponent |
createCopy(org.omg.IOP.TaggedComponent tc)
Make a deep copy of an IOP:TaggedComponent |
static byte[] |
createGSSExportedName(byte[] oid,
byte[] name)
Generate an exported name as specified in [RFC 2743], section 3.2 copied below: 3.2: Mechanism-Independent Exported Name Object Format This section specifies a mechanism-independent level of encapsulating representation for names exported via the GSS_Export_name() call, including an object identifier representing the exporting mechanism. |
static byte[] |
createGSSUPMechOID()
Create an ASN.1, DER encoded representation for the GSSUP OID mechanism |
static SAS_ContextSec |
createSecureAttributeServiceContext(IorSecurityConfigMetaData (src) metadata)
Create the Secure Attribute Service (SAS) context included in a CompoundSecMech definition |
static org.omg.IOP.TaggedComponent |
createSecurityTaggedComponent(IorSecurityConfigMetaData (src) metadata,
org.omg.IOP.Codec codec,
int sslPort,
org.omg.CORBA.ORB orb)
Return a top-level IOP:TaggedComponent to be stuffed into an IOR, containing a CSIIOP.CompoundSecMechList, tagged as TAG_CSI_SEC_MECH_LIST. |
static org.omg.IOP.TaggedComponent |
createSSLTaggedComponent(IorSecurityConfigMetaData (src) metadata,
org.omg.IOP.Codec codec,
int sslPort,
org.omg.CORBA.ORB orb)
Return a top-level IOP::TaggedComponent to be stuffed into an IOR, containing an structure SSLIOP::SSL, tagged as TAG_SSL_SEC_TRANS. |
static int |
createTargetRequires(IorSecurityConfigMetaData.TransportConfig (src) tc)
Create the AssociationOption for CompoundSecMech - target_requires |
static int |
createTargetSupports(IorSecurityConfigMetaData.TransportConfig (src) tc)
Create bitmask of what the target supports |
static TransportAddress[] |
createTransportAddress(java.lang.String host,
int port)
Create a TransportAddress[] with a single TransportAddress |
static org.omg.IOP.TaggedComponent |
createTransportMech(IorSecurityConfigMetaData.TransportConfig (src) tconfig,
org.omg.IOP.Codec codec,
int sslPort,
org.omg.CORBA.ORB orb)
Create a transport mechanism TaggedComponent to be stuffed into a CompoundSecMech. |
static byte[] |
decodeGssExportedName(byte[] encodedName)
Decodes a GSS exported name that has been encoded with the GSSUP mechanism OID. |
static InitialContextToken |
decodeInitialContextToken(byte[] encodedToken,
org.omg.IOP.Codec codec)
Decodes an ASN.1-encoded InitialContextToken. |
static byte[] |
encodeGssExportedName(byte[] name)
ASN.1-encodes a GSS exported name with the GSSUP mechanism OID. |
static byte[] |
encodeInitialContextToken(InitialContextToken authToken,
org.omg.IOP.Codec codec)
ASN.1-encode an InitialContextToken as defined in RFC 2743, Section 3.1, "Mechanism-Independent Token Format", pp. |
static CompoundSecMech |
getMatchingSecurityMech(org.omg.PortableInterceptor.ClientRequestInfo ri,
org.omg.IOP.Codec codec,
short clientSupports,
short clientRequires)
Helper method to be called from a client request interceptor. |
static byte[] |
gssUpMechOid()
Return an ASN.1, DER encoded representation for the GSSUP OID mechanism. |
static void |
toString(CompoundSecMech securityMech,
java.lang.StringBuffer buffer)
Generate a string representation of the CompoundSecMech |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static org.omg.IOP.TaggedComponent createCopy(org.omg.IOP.TaggedComponent tc)
public static org.omg.IOP.TaggedComponent createSSLTaggedComponent(IorSecurityConfigMetaData (src) metadata, org.omg.IOP.Codec codec, int sslPort, org.omg.CORBA.ORB orb)
public static org.omg.IOP.TaggedComponent createSecurityTaggedComponent(IorSecurityConfigMetaData (src) metadata, org.omg.IOP.Codec codec, int sslPort, org.omg.CORBA.ORB orb)
public static CompoundSecMech[] createCompoundSecMechanisms(IorSecurityConfigMetaData (src) metadata, org.omg.IOP.Codec codec, int sslPort, org.omg.CORBA.ORB orb)
public static SAS_ContextSec createSecureAttributeServiceContext(IorSecurityConfigMetaData (src) metadata)
public static AS_ContextSec createAuthenticationServiceContext(IorSecurityConfigMetaData (src) metadata)
public static org.omg.IOP.TaggedComponent createTransportMech(IorSecurityConfigMetaData.TransportConfig (src) tconfig, org.omg.IOP.Codec codec, int sslPort, org.omg.CORBA.ORB orb)
public static TransportAddress[] createTransportAddress(java.lang.String host, int port)
public static int createTargetRequires(IorSecurityConfigMetaData.TransportConfig (src) tc)
public static int createTargetSupports(IorSecurityConfigMetaData.TransportConfig (src) tc)
public static byte[] createGSSUPMechOID()
public static byte[] gssUpMechOid()
public static byte[] createGSSExportedName(byte[] oid, byte[] name)
oid
- the DER encoded OIDname
- the name to be converted to GSSExportedNamepublic static byte[] encodeInitialContextToken(InitialContextToken authToken, org.omg.IOP.Codec codec)
public static InitialContextToken decodeInitialContextToken(byte[] encodedToken, org.omg.IOP.Codec codec)
public static byte[] encodeGssExportedName(byte[] name)
public static byte[] decodeGssExportedName(byte[] encodedName)
public static CompoundSecMech getMatchingSecurityMech(org.omg.PortableInterceptor.ClientRequestInfo ri, org.omg.IOP.Codec codec, short clientSupports, short clientRequires)
ri
parameter refers to the current request.
This method returns the first CompoundSecMech
found in the target IOR such that
CompoundSecMech
requirements are satisfied
by the options in the clientSupports
parameter,
andclientRequires
parameter
is satisfied by the CompoundSecMech
.CompoundSecMech
s or if no
matching CompoundSecMech
is found.
Since this method is intended to be called from a client request
interceptor, it converts unexpected exceptions into MARSHAL
exceptions.
public static void toString(CompoundSecMech securityMech, java.lang.StringBuffer buffer)
securityMech
- - the CompoundSecMech to create the string forbuffer
- - the buffer to write to
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |