mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/MessageRouterImpl.java
private boolean checkMessageForEncryptionInfo(final TerraHarvestMessage message, 
            final EncryptType messageEncryptType) throws InvalidProtocolBufferException
    {
        if (messageEncryptType == EncryptType.NONE)
        {
            final TerraHarvestPayload unencryptedPayload = 
                    TerraHarvestPayload.parseFrom(message.getTerraHarvestPayload());
            final Namespace messageNamespace = unencryptedPayload.getNamespace();
            

            //Check if there is no encryption type and if the message is from the encryption information namespace.
            //If it meets these conditions then the message should always be acknowledged.
            if (messageNamespace == Namespace.EncryptionInfo)
            {
                return true;
            }
        }
        return false;
    }
/**
     * Method that checks the encryption level and namespace of the message. If the encryption level is none and the
     * message belongs to the {@link Namespace#EncryptionInfo} it should always be acknowledged by the system.
     * 
     * @param message
     *      The message with the namespace to be checked.
     * @param messageEncryptType
     *      The encryption level of the message.
     * @return
     *      True if the message is not encrypted and belongs to the {@link Namespace#EncryptionInfo} namespace.
     *      Otherwise false is returned.
     * @throws InvalidProtocolBufferException
     *      If the payload cannot be parsed from the message while trying to check what namespace the message pertains
     *      to. 
     */
Method that checks the encryption level and namespace of the message. If the encryption level is none and the
message belongs to the  Namespace#EncryptionInfo it should always be acknowledged by the system.

@param message
The message with the namespace to be checked.
@param messageEncryptType
The encryption level of the message.
@return
True if the message is not encrypted and belongs to the  Namespace#EncryptionInfo namespace.
Otherwise false is returned.
@throws InvalidProtocolBufferException
If the payload cannot be parsed from the message while trying to check what namespace the message pertains
to.
Method that checks the encryption level and namespace of the message . If the encryption level is none and the message belongs to the Namespace#EncryptionInfo it should always be acknowledged by the system . @param message The message with the namespace to be checked . @param messageEncryptType The encryption level of the message . @return True if the message is not encrypted and belongs to the Namespace#EncryptionInfo namespace . Otherwise false is returned . @throws InvalidProtocolBufferException If the payload cannot be parsed from the message while trying to check what namespace the message pertains to .
private boolean checkMessageForEncryptionInfo(final TerraHarvestMessage message, 
            final EncryptType messageEncryptType) throws InvalidProtocolBufferException
    {
        if (messageEncryptType == EncryptType.NONE)
        {
            final TerraHarvestPayload unencryptedPayload = 
                    TerraHarvestPayload.parseFrom(message.getTerraHarvestPayload());
            final Namespace messageNamespace = unencryptedPayload.getNamespace();
            if (messageNamespace == Namespace.EncryptionInfo)
            {
                return true;
            }
        }
        return false;
    }
private boolean checkMessageForEncryptionInfo ( final TerraHarvestMessage message , final EncryptType messageEncryptType ) throws InvalidProtocolBufferException { if ( messageEncryptType == EncryptType . NONE ) { final TerraHarvestPayload unencryptedPayload = TerraHarvestPayload . parseFrom ( message . getTerraHarvestPayload ( ) ) ; final Namespace messageNamespace = unencryptedPayload . getNamespace ( ) ; if ( messageNamespace == Namespace . EncryptionInfo ) { return true ; } } return false ; }
Method that checks the encryption level and namespace of the message.
Method that checks the encryption level and namespace of the message .
//Check if there is no encryption type and if the message is from the encryption information namespace. //If it meets these conditions then the message should always be acknowledged.