Record Class ApiKeyLoginProperties
java.lang.Object
java.lang.Record
ch.tocco.nice2.usermanager.impl.auth.ApiKeyLoginProperties
@ConfigurationProperties("nice2.api-key")
public record ApiKeyLoginProperties(Map<String, ApiKeyLoginProperties.ApiKeyLogin> logins)
extends Record
Logins of the support user that authenticate with a predefined API key, by username:
nice2.api-key.logins.dev-mcp.key=secret nice2.api-key.logins.dev-mcp.run-envs=DEVELOPMENT,TEST nice2.api-key.logins.dev-mcp.roles=ALL
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aApiKeyLoginPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.logins()Returns the value of theloginsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ApiKeyLoginProperties
Creates an instance of aApiKeyLoginPropertiesrecord class.- Parameters:
logins- the value for theloginsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
logins
Returns the value of theloginsrecord component.- Returns:
- the value of the
loginsrecord component
-