/** * <p> * Create a {@code org.omg.CSIIOP.CompoundSecMechanisms} which is a sequence of {@code CompoundSecMech}. Here we only * support one security mechanism. * </p> * * @param metadata the metadata object that contains the CSIv2 security configuration info. * @param codec the {@code Codec} used to encode the CSIv2 security component. * @param sslPort an {@code int} representing the SSL port. * @param orb a reference to the running {@code ORB}. * @return the constructed {@code CompoundSecMech} array. */ public static CompoundSecMech[] createCompoundSecMechanisms(IORSecurityConfigMetaData metadata, Codec codec, int sslPort, ORB orb) { // support just 1 security mechanism for now (and ever). CompoundSecMech[] csmList = new CompoundSecMech[1]; // a CompoundSecMech contains: target_requires, transport_mech, as_context_mech, sas_context_mech. TaggedComponent transport_mech = createTransportMech(metadata.getTransportConfig(), codec, sslPort, orb); // create AS Context. AS_ContextSec asContext = createAuthenticationServiceContext(metadata); // create SAS Context. SAS_ContextSec sasContext = createSecureAttributeServiceContext(metadata); // create target_requires bit field (AssociationOption) can't read directly the transport_mech TaggedComponent. int target_requires = createTargetRequires(metadata.getTransportConfig()) | asContext.target_requires | sasContext.target_requires; CompoundSecMech csm = new CompoundSecMech((short) target_requires, transport_mech, asContext, sasContext); csmList[0] = csm; return csmList; }
public static org.omg.CSIIOP.CompoundSecMech read (org.omg.CORBA.portable.InputStream istream) { org.omg.CSIIOP.CompoundSecMech value = new org.omg.CSIIOP.CompoundSecMech (); value.target_requires = istream.read_ushort (); value.transport_mech = org.omg.IOP.TaggedComponentHelper.read (istream); value.as_context_mech = org.omg.CSIIOP.AS_ContextSecHelper.read (istream); value.sas_context_mech = org.omg.CSIIOP.SAS_ContextSecHelper.read (istream); return value; }
public static org.omg.CSIIOP.CompoundSecMech read (org.omg.CORBA.portable.InputStream istream) { org.omg.CSIIOP.CompoundSecMech value = new org.omg.CSIIOP.CompoundSecMech (); value.target_requires = istream.read_ushort (); value.transport_mech = org.omg.IOP.TaggedComponentHelper.read (istream); value.as_context_mech = org.omg.CSIIOP.AS_ContextSecHelper.read (istream); value.sas_context_mech = org.omg.CSIIOP.SAS_ContextSecHelper.read (istream); return value; }
public static org.omg.CSIIOP.CompoundSecMech read (final org.omg.CORBA.portable.InputStream in) { org.omg.CSIIOP.CompoundSecMech result = new org.omg.CSIIOP.CompoundSecMech(); result.target_requires=in.read_ushort(); result.transport_mech=org.omg.IOP.TaggedComponentHelper.read(in); result.as_context_mech=org.omg.CSIIOP.AS_ContextSecHelper.read(in); result.sas_context_mech=org.omg.CSIIOP.SAS_ContextSecHelper.read(in); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.CSIIOP.CompoundSecMech s)
public static org.omg.CSIIOP.CompoundSecMech read (final org.omg.CORBA.portable.InputStream in) { org.omg.CSIIOP.CompoundSecMech result = new org.omg.CSIIOP.CompoundSecMech(); result.target_requires=in.read_ushort(); result.transport_mech=org.omg.IOP.TaggedComponentHelper.read(in); result.as_context_mech=org.omg.CSIIOP.AS_ContextSecHelper.read(in); result.sas_context_mech=org.omg.CSIIOP.SAS_ContextSecHelper.read(in); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.CSIIOP.CompoundSecMech s)
/** * <p> * Create a {@code org.omg.CSIIOP.CompoundSecMechanisms} which is a sequence of {@code CompoundSecMech}. Here we only * support one security mechanism. * </p> * * @param metadata the metadata object that contains the CSIv2 security configuration info. * @param codec the {@code Codec} used to encode the CSIv2 security component. * @param sslPort an {@code int} representing the SSL port. * @param orb a reference to the running {@code ORB}. * @return the constructed {@code CompoundSecMech} array. */ public static CompoundSecMech[] createCompoundSecMechanisms(IORSecurityConfigMetaData metadata, Codec codec, int sslPort, ORB orb) { // support just 1 security mechanism for now (and ever). CompoundSecMech[] csmList = new CompoundSecMech[1]; // a CompoundSecMech contains: target_requires, transport_mech, as_context_mech, sas_context_mech. TaggedComponent transport_mech = createTransportMech(metadata.getTransportConfig(), codec, sslPort, orb); // create AS Context. AS_ContextSec asContext = createAuthenticationServiceContext(metadata); // create SAS Context. SAS_ContextSec sasContext = createSecureAttributeServiceContext(metadata); // create target_requires bit field (AssociationOption) can't read directly the transport_mech TaggedComponent. int target_requires = createTargetRequires(metadata.getTransportConfig()) | asContext.target_requires | sasContext.target_requires; CompoundSecMech csm = new CompoundSecMech((short) target_requires, transport_mech, asContext, sasContext); csmList[0] = csm; return csmList; }
/** * <p> * Create a {@code org.omg.CSIIOP.CompoundSecMechanisms} which is a sequence of {@code CompoundSecMech}. Here we only * support one security mechanism. * </p> * * @param metadata the metadata object that contains the CSIv2 security configuration info. * @param codec the {@code Codec} used to encode the CSIv2 security component. * @param sslPort an {@code int} representing the SSL port. * @param orb a reference to the running {@code ORB}. * @return the constructed {@code CompoundSecMech} array. */ public static CompoundSecMech[] createCompoundSecMechanisms(IORSecurityConfigMetaData metadata, Codec codec, int sslPort, ORB orb) { // support just 1 security mechanism for now (and ever). CompoundSecMech[] csmList = new CompoundSecMech[1]; // a CompoundSecMech contains: target_requires, transport_mech, as_context_mech, sas_context_mech. TaggedComponent transport_mech = createTransportMech(metadata.getTransportConfig(), codec, sslPort, orb); // create AS Context. AS_ContextSec asContext = createAuthenticationServiceContext(metadata); // create SAS Context. SAS_ContextSec sasContext = createSecureAttributeServiceContext(metadata); // create target_requires bit field (AssociationOption) can't read directly the transport_mech TaggedComponent. int target_requires = createTargetRequires(metadata.getTransportConfig()) | asContext.target_requires | sasContext.target_requires; CompoundSecMech csm = new CompoundSecMech((short) target_requires, transport_mech, asContext, sasContext); csmList[0] = csm; return csmList; }
CompoundSecMech mech = new CompoundSecMech();
targetName); compoundSecMech[0] = new CompoundSecMech(sasValues.targetRequires, transportMech, asContextSec,