Package de.xima.fc.persistence
Class ConnectionProperties.TlsScope
- java.lang.Object
-
- de.xima.fc.persistence.ConnectionProperties.TlsScope
-
- Enclosing class:
- ConnectionProperties
public static final class ConnectionProperties.TlsScope extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConnectionProperties.TlsScope.ScopeTypeThe type of TLS scope.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConnectionProperties.TlsScopedeserialize(String serialized)Deserializes a TLS scope from a String representation.booleanequals(Object o)StringgetSubject()The subject of the TLS scope.ConnectionProperties.TlsScope.ScopeTypegetType()The type of TLS scope.inthashCode()Stringserialize()Returns a serialized representation of the TLS scope in the format "TYPE:SUBJECT".static ConnectionProperties.TlsScopesystem()Creates a TLS scope for the whole system.static ConnectionProperties.TlsScopetenant(Long tenantId)Creates a TLS scope for a specific tenant.StringtoString()
-
-
-
Method Detail
-
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
public ConnectionProperties.TlsScope.ScopeType getType()
The type of TLS scope.
-
getSubject
public String getSubject()
The subject of the TLS scope. Depending on the type, this can be aLongas the ID of the tenant, or it may benullif the scope is system-wide.
-
-