Search in sources :

Example 11 with TaggedComponent

use of org.omg.IOP.TaggedComponent in project wildfly by wildfly.

the class CSIv2Util method createCopy.

/**
     * <p>
     * Make a deep copy of an {@code IOP:TaggedComponent}.
     * </p>
     *
     * @param tc the {@code TaggedComponent} to be copied.
     * @return a reference to the created copy.
     */
public static TaggedComponent createCopy(TaggedComponent tc) {
    TaggedComponent copy = null;
    if (tc != null) {
        byte[] buf = new byte[tc.component_data.length];
        System.arraycopy(tc.component_data, 0, buf, 0, tc.component_data.length);
        copy = new TaggedComponent(tc.tag, buf);
    }
    return copy;
}
Also used : TaggedComponent(org.omg.IOP.TaggedComponent)

Aggregations

TaggedComponent (org.omg.IOP.TaggedComponent)11 Any (org.omg.CORBA.Any)5 InvalidTypeForEncoding (org.omg.IOP.CodecPackage.InvalidTypeForEncoding)4 CDRInputStream (com.sun.corba.se.impl.encoding.CDRInputStream)3 EncapsInputStream (com.sun.corba.se.impl.encoding.EncapsInputStream)3 ORB (com.sun.corba.se.spi.orb.ORB)3 CompoundSecMech (org.omg.CSIIOP.CompoundSecMech)3 Iterator (java.util.Iterator)2 BAD_PARAM (org.omg.CORBA.BAD_PARAM)2 AS_ContextSec (org.omg.CSIIOP.AS_ContextSec)2 CompoundSecMechList (org.omg.CSIIOP.CompoundSecMechList)2 SAS_ContextSec (org.omg.CSIIOP.SAS_ContextSec)2 SSL (org.omg.SSLIOP.SSL)2 TAG_TLS_SEC_TRANS (org.omg.CSIIOP.TAG_TLS_SEC_TRANS)1 TLS_SEC_TRANS (org.omg.CSIIOP.TLS_SEC_TRANS)1 TransportAddress (org.omg.CSIIOP.TransportAddress)1