|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.iiop.csiv2.CSIv2Util
Helper class
Method Summary | |
static org.omg.CSIIOP.AS_ContextSec |
createAuthenticationServiceContext(org.jboss.metadata.IorSecurityConfigMetaData metadata)
Create the client Authentication Service (AS) context included in a CompoundSecMech definition. |
static org.omg.CSIIOP.CompoundSecMech[] |
createCompoundSecMechanisms(org.jboss.metadata.IorSecurityConfigMetaData metadata,
Codec codec,
int sslPort,
ORB orb)
Create a CSIIOP.CompoundSecMechanisms which is a sequence of CompoundSecMech. |
static TaggedComponent |
createCopy(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 org.omg.CSIIOP.SAS_ContextSec |
createSecureAttributeServiceContext(org.jboss.metadata.IorSecurityConfigMetaData metadata)
Create the Secure Attribute Service (SAS) context included in a CompoundSecMech definition |
static TaggedComponent |
createSecurityTaggedComponent(org.jboss.metadata.IorSecurityConfigMetaData metadata,
Codec codec,
int sslPort,
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 TaggedComponent |
createSSLTaggedComponent(org.jboss.metadata.IorSecurityConfigMetaData metadata,
Codec codec,
int sslPort,
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(org.jboss.metadata.IorSecurityConfigMetaData.TransportConfig tc)
Create the AssociationOption for CompoundSecMech - target_requires |
static int |
createTargetSupports(org.jboss.metadata.IorSecurityConfigMetaData.TransportConfig tc)
Create bitmask of what the target supports |
static org.omg.CSIIOP.TransportAddress[] |
createTransportAddress(String host,
int port)
Create a TransportAddress[] with a single TransportAddress |
static TaggedComponent |
createTransportMech(org.jboss.metadata.IorSecurityConfigMetaData.TransportConfig tconfig,
Codec codec,
int sslPort,
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 org.omg.GSSUP.InitialContextToken |
decodeInitialContextToken(byte[] encodedToken,
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(org.omg.GSSUP.InitialContextToken authToken,
Codec codec)
ASN.1-encode an InitialContextToken as defined in RFC 2743, Section 3.1, "Mechanism-Independent Token Format", pp. |
static org.omg.CSIIOP.CompoundSecMech |
getMatchingSecurityMech(ClientRequestInfo ri,
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(org.omg.CSIIOP.CompoundSecMech securityMech,
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 TaggedComponent createCopy(TaggedComponent tc)
public static TaggedComponent createSSLTaggedComponent(org.jboss.metadata.IorSecurityConfigMetaData metadata, Codec codec, int sslPort, ORB orb)
public static TaggedComponent createSecurityTaggedComponent(org.jboss.metadata.IorSecurityConfigMetaData metadata, Codec codec, int sslPort, ORB orb)
public static org.omg.CSIIOP.CompoundSecMech[] createCompoundSecMechanisms(org.jboss.metadata.IorSecurityConfigMetaData metadata, Codec codec, int sslPort, ORB orb)
public static org.omg.CSIIOP.SAS_ContextSec createSecureAttributeServiceContext(org.jboss.metadata.IorSecurityConfigMetaData metadata)
public static org.omg.CSIIOP.AS_ContextSec createAuthenticationServiceContext(org.jboss.metadata.IorSecurityConfigMetaData metadata)
public static TaggedComponent createTransportMech(org.jboss.metadata.IorSecurityConfigMetaData.TransportConfig tconfig, Codec codec, int sslPort, ORB orb)
public static org.omg.CSIIOP.TransportAddress[] createTransportAddress(String host, int port)
public static int createTargetRequires(org.jboss.metadata.IorSecurityConfigMetaData.TransportConfig tc)
public static int createTargetSupports(org.jboss.metadata.IorSecurityConfigMetaData.TransportConfig 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(org.omg.GSSUP.InitialContextToken authToken, Codec codec)
public static org.omg.GSSUP.InitialContextToken decodeInitialContextToken(byte[] encodedToken, Codec codec)
public static byte[] encodeGssExportedName(byte[] name)
public static byte[] decodeGssExportedName(byte[] encodedName)
public static org.omg.CSIIOP.CompoundSecMech getMatchingSecurityMech(ClientRequestInfo ri, 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(org.omg.CSIIOP.CompoundSecMech securityMech, StringBuffer buffer)
securityMech
- - the CompoundSecMech to create the string forbuffer
- - the buffer to write to
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |