mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/api/EnumConverter.java
public static EncryptType convertEncryptionModeToEncryptType(final EncryptionMode mode)
    {
        if (ENCRYPTION_MODE.containsKey(mode))
        {
            return ENCRYPTION_MODE.get(mode);
        }
        throw new IllegalArgumentException(String.format("Unable to convert mode %s to a type!", 
                mode.toString()));
    }
/**
     * Method used to convert an {@link EncryptionMode} to it's proto equivalent.
     * 
     * @param mode
     *      The {@link EncryptionMode} to be converted to a proto equivalent.
     * @return
     *      The {@link EncryptType} that is equivalent.
     */
Method used to convert an  EncryptionMode to it's proto equivalent.

@param mode
The  EncryptionMode to be converted to a proto equivalent.
@return
The  EncryptType that is equivalent.
Method used to convert an EncryptionMode to it ' s proto equivalent . @param mode The EncryptionMode to be converted to a proto equivalent . @return The EncryptType that is equivalent .
public static EncryptType convertEncryptionModeToEncryptType(final EncryptionMode mode)
    {
        if (ENCRYPTION_MODE.containsKey(mode))
        {
            return ENCRYPTION_MODE.get(mode);
        }
        throw new IllegalArgumentException(String.format("Unable to convert mode %s to a type!", 
                mode.toString()));
    }
public static EncryptType convertEncryptionModeToEncryptType ( final EncryptionMode mode ) { if ( ENCRYPTION_MODE . containsKey ( mode ) ) { return ENCRYPTION_MODE . get ( mode ) ; } throw new IllegalArgumentException ( String . format ( "Unable to convert mode %s to a type!" , mode . toString ( ) ) ) ; }
Method used to convert an {@link EncryptionMode} to it's proto equivalent.
Method used to convert an { @link EncryptionMode } to it ' s proto equivalent .