Class CryptographyData

java.lang.Object
br.net.dd.netherwingcore.common.utilities.CryptographyData

public class CryptographyData extends Object
The CryptographyData class provides utility methods for accessing cryptographic data such as certificate passwords, aliases, and algorithms. These properties are loaded from a configuration file located in the classpath under the resource name cryptography.properties.

The properties file is expected to contain the following keys:

  • cert.password - The password for the cryptographic certificate.
  • cert.alias - The alias associated with the certificate.
  • cert.algorithm - The algorithm used for cryptographic operations.

This class loads the properties file at class initialization (static block) and throws a RuntimeException if the file cannot be read or loaded.

  • Constructor Details

    • CryptographyData

      public CryptographyData()
  • Method Details

    • getCertPassword

      public static String getCertPassword()
      Retrieves the password for the cryptographic certificate.
      Returns:
      the certificate password as a String, or null if the property is not found.
    • getCertAlias

      public static String getCertAlias()
      Retrieves the alias associated with the cryptographic certificate.
      Returns:
      the certificate alias as a String, or null if the property is not found.
    • getCertAlgorithm

      public static String getCertAlgorithm()
      Retrieves the algorithm used for cryptographic operations.
      Returns:
      the cryptographic algorithm as a String, or null if the property is not found.