Record Class X509TlsKeyStore

java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.api.web.x509.X509TlsKeyStore
Record Components:
location - where the key store is.
password - password of the key store and of its key.
type - type of the key store, such as PKCS12.

public record X509TlsKeyStore(Path location, String password, String type) extends Record
The key store that holds the server certificate of the dedicated TLS port.
  • Field Details

    • location

      private final Path location
      The field for the location record component.
    • password

      private final String password
      The field for the password record component.
    • type

      private final String type
      The field for the type record component.
  • Constructor Details

    • X509TlsKeyStore

      public X509TlsKeyStore(Path location, String password, String type)
      Creates an instance of a X509TlsKeyStore record class.
      Parameters:
      location - the value for the location record component
      password - the value for the password record component
      type - the value for the type record component
  • Method Details

    • toString

      public String toString()
      Describes the key store without its password.
      Specified by:
      toString in class Record
      Returns:
      the description.
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • location

      public Path location()
      Returns the value of the location record component.
      Returns:
      the value of the location record component
    • password

      public String password()
      Returns the value of the password record component.
      Returns:
      the value of the password record component
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component