Package org.forgerock.openig.tools
Record Class ServerTlsOptions.SniConfiguration
java.lang.Object
java.lang.Record
org.forgerock.openig.tools.ServerTlsOptions.SniConfiguration
- Record Components:
serverNames
- the map used to retrieve aSigningKey
associated to a server namedefaultKey
- the defaultSigningKey
to use for when server name is unknown
- Enclosing class:
- ServerTlsOptions
public static record ServerTlsOptions.SniConfiguration(Map<String,SigningKey> serverNames, SigningKey defaultKey)
extends Record
A SNI (Server Name Indication) configuration holder.
-
Constructor Summary
ConstructorDescriptionSniConfiguration
(Map<String, SigningKey> serverNames, SigningKey defaultKey) Constructs an SNI configuration instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultKey
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theserverNames
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SniConfiguration
Constructs an SNI configuration instance.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
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. -
equals
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 withObjects::equals(Object,Object)
. -
serverNames
Returns the value of theserverNames
record component.- Returns:
- the value of the
serverNames
record component
-
defaultKey
Returns the value of thedefaultKey
record component.- Returns:
- the value of the
defaultKey
record component
-