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

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