iiop-openjdk/src/main/java/org/wildfly/iiop/openjdk/csiv2/CSIv2Util.java
public static int createTargetSupports(IORTransportConfigMetaData tc) {
        int supports = 0;

        if (tc != null) {
            if (!tc.getIntegrity().equals(IORTransportConfigMetaData.INTEGRITY_NONE)) {
                supports = supports | Integrity.value;
            }
            if (!tc.getConfidentiality().equals(IORTransportConfigMetaData.CONFIDENTIALITY_NONE)) {
                supports = supports | Confidentiality.value;
            }
            if (!tc.getDetectMisordering().equalsIgnoreCase(IORTransportConfigMetaData.DETECT_MISORDERING_NONE)) {
                supports = supports | DetectMisordering.value;
            }
            if (!tc.getDetectReplay().equalsIgnoreCase(IORTransportConfigMetaData.DETECT_REPLAY_NONE)) {
                supports = supports | DetectReplay.value;
            }
            if (!tc.getEstablishTrustInTarget().equals(IORTransportConfigMetaData.ESTABLISH_TRUST_IN_TARGET_NONE)) {
                supports = supports | EstablishTrustInTarget.value;
            }
            if (!tc.getEstablishTrustInClient().equals(IORTransportConfigMetaData.ESTABLISH_TRUST_IN_CLIENT_NONE)) {
                supports = supports | EstablishTrustInClient.value;
            }
        }

        return supports;
    }
public static int createTargetSupports(IORTransportConfigMetaData tc) {
        int supports = 0;

        if (tc != null) {
            if (!tc.getIntegrity().equals(IORTransportConfigMetaData.INTEGRITY_NONE)) {
                supports = supports | Integrity.value;
            }
            if (!tc.getConfidentiality().equals(IORTransportConfigMetaData.CONFIDENTIALITY_NONE)) {
                supports = supports | Confidentiality.value;
            }
            if (!tc.getDetectMisordering().equalsIgnoreCase(IORTransportConfigMetaData.DETECT_MISORDERING_NONE)) {
                supports = supports | DetectMisordering.value;
            }
            if (!tc.getDetectReplay().equalsIgnoreCase(IORTransportConfigMetaData.DETECT_REPLAY_NONE)) {
                supports = supports | DetectReplay.value;
            }
            if (!tc.getEstablishTrustInTarget().equals(IORTransportConfigMetaData.ESTABLISH_TRUST_IN_TARGET_NONE)) {
                supports = supports | EstablishTrustInTarget.value;
            }
            if (!tc.getEstablishTrustInClient().equals(IORTransportConfigMetaData.ESTABLISH_TRUST_IN_CLIENT_NONE)) {
                supports = supports | EstablishTrustInClient.value;
            }
        }

        return supports;
    }
public static int createTargetSupports ( IORTransportConfigMetaData tc ) { int supports = 0 ; if ( tc != null ) { if ( ! tc . getIntegrity ( ) . equals ( IORTransportConfigMetaData . INTEGRITY_NONE ) ) { supports = supports | Integrity . value ; } if ( ! tc . getConfidentiality ( ) . equals ( IORTransportConfigMetaData . CONFIDENTIALITY_NONE ) ) { supports = supports | Confidentiality . value ; } if ( ! tc . getDetectMisordering ( ) . equalsIgnoreCase ( IORTransportConfigMetaData . DETECT_MISORDERING_NONE ) ) { supports = supports | DetectMisordering . value ; } if ( ! tc . getDetectReplay ( ) . equalsIgnoreCase ( IORTransportConfigMetaData . DETECT_REPLAY_NONE ) ) { supports = supports | DetectReplay . value ; } if ( ! tc . getEstablishTrustInTarget ( ) . equals ( IORTransportConfigMetaData . ESTABLISH_TRUST_IN_TARGET_NONE ) ) { supports = supports | EstablishTrustInTarget . value ; } if ( ! tc . getEstablishTrustInClient ( ) . equals ( IORTransportConfigMetaData . ESTABLISH_TRUST_IN_CLIENT_NONE ) ) { supports = supports | EstablishTrustInClient . value ; } } return supports ; }
<p>
Create the bitmask of what the target supports.
</p>

@param tc the transport configuration metadata.
@return an {@code int} representing the transport mechanisms supported by the target.
<p > Create the bitmask of what the target supports . < / p >