Class ConnectionProperties.TlsScope

java.lang.Object
de.xima.fc.persistence.ConnectionProperties.TlsScope
Enclosing class:
ConnectionProperties

public static final class ConnectionProperties.TlsScope extends Object
Since:
8.5.0
Author:
Norman Lorenz
  • Method Details

    • deserialize

      public static ConnectionProperties.TlsScope deserialize(String serialized)
      Deserializes a TLS scope from a String representation.
      Parameters:
      serialized - The serialized TLS scope in the format "TYPE:SUBJECT".
      Returns:
      The deserialized ConnectionProperties.TlsScope.
    • system

      public static ConnectionProperties.TlsScope system()
      Creates a TLS scope for the whole system.
      Returns:
      A TLS scope for the whole system.
    • tenant

      public static ConnectionProperties.TlsScope tenant(Long tenantId)
      Creates a TLS scope for a specific tenant.
      Parameters:
      tenantId - The ID of the tenant.
      Returns:
      A TLS scope for the specified tenant.
    • serialize

      public String serialize()
      Returns a serialized representation of the TLS scope in the format "TYPE:SUBJECT".
      Returns:
      The serialized TLS scope.
    • getType

      The type of TLS scope.
    • getSubject

      public String getSubject()
      The subject of the TLS scope. Depending on the type, this can be a Long as the ID of the tenant, or it may be null if the scope is system-wide.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object