mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/encryption/EncryptMessageServiceImpl.java
public void saveAuthorizedKey(final int systemId, final String authorizedPublicKey)
    {

        m_PropAuthorized.setProperty(SYSTEM_ID_KEY + ((Integer)systemId).toString(), authorizedPublicKey);
        try (FileOutputStream outputStream = new FileOutputStream(m_PropFileAuthorized))
        {
            m_PropAuthorized.store(outputStream, "Encryption Properties , last edited ((Integer)systemId).toString() ");
        }
        catch (final IOException ex)
        {
            m_Logging.log(LogService.LOG_ERROR, "Unable to write authorized public key to file: " + ex.getMessage());
        }
    }
/**
     * Save the local public static key in the "th.encryption.authorized.properties" file 
     * for the specific system. This is only used for testing purposes.
     * @param systemId
     *         SystemId for a specific system
     * @param authorizedPublicKey
     *         This is the public static key encoded in hexadecimal string
     *        
     */
Save the local public static key in the "th.encryption.authorized.properties" file
for the specific system. This is only used for testing purposes.
@param systemId
SystemId for a specific system
@param authorizedPublicKey
This is the public static key encoded in hexadecimal string
Save the local public static key in the " th . encryption . authorized . properties " file for the specific system . This is only used for testing purposes . @param systemId SystemId for a specific system @param authorizedPublicKey This is the public static key encoded in hexadecimal string
public void saveAuthorizedKey(final int systemId, final String authorizedPublicKey)
    {
        m_PropAuthorized.setProperty(SYSTEM_ID_KEY + ((Integer)systemId).toString(), authorizedPublicKey);
        try (FileOutputStream outputStream = new FileOutputStream(m_PropFileAuthorized))
        {
            m_PropAuthorized.store(outputStream, "Encryption Properties , last edited ((Integer)systemId).toString() ");
        }
        catch (final IOException ex)
        {
            m_Logging.log(LogService.LOG_ERROR, "Unable to write authorized public key to file: " + ex.getMessage());
        }
    }
public void saveAuthorizedKey ( final int systemId , final String authorizedPublicKey ) { m_PropAuthorized . setProperty ( SYSTEM_ID_KEY + ( ( Integer ) systemId ) . toString ( ) , authorizedPublicKey ) ; try ( FileOutputStream outputStream = new FileOutputStream ( m_PropFileAuthorized ) ) { m_PropAuthorized . store ( outputStream , "Encryption Properties , last edited ((Integer)systemId).toString() " ) ; } catch ( final IOException ex ) { m_Logging . log ( LogService . LOG_ERROR , "Unable to write authorized public key to file: " + ex . getMessage ( ) ) ; } }
Save the local public static key in the "th.encryption.authorized.properties" file
 for the specific system.
Save the local public static key in the " th . encryption . authorized . properties " file for the specific system .