Record Class ApiTokenManager.ApiTokenContext
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.auth.apitoken.ApiTokenManager.ApiTokenContext
- Record Components:
tokenName- the token namesecurityLevels- the security levels granted to the token
- Enclosing interface:
ApiTokenManager
public static record ApiTokenManager.ApiTokenContext(String tokenName, com.google.common.collect.ImmutableCollection<SecurityLevelConfig> securityLevels)
extends Record
Context object contains the name of the token associated with an HTTP Request as well as which
security levels are granted to the token
-
Constructor Summary
ConstructorsConstructorDescriptionApiTokenContext(String tokenName, com.google.common.collect.ImmutableCollection<SecurityLevelConfig> securityLevels) Creates an instance of aApiTokenContextrecord 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.com.google.common.collect.ImmutableCollection<SecurityLevelConfig> Returns the value of thesecurityLevelsrecord component.Returns the value of thetokenNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ApiTokenContext
public ApiTokenContext(String tokenName, com.google.common.collect.ImmutableCollection<SecurityLevelConfig> securityLevels) Creates an instance of aApiTokenContextrecord class.- Parameters:
tokenName- the value for thetokenNamerecord componentsecurityLevels- the value for thesecurityLevelsrecord 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). -
tokenName
-
securityLevels
Returns the value of thesecurityLevelsrecord component.- Returns:
- the value of the
securityLevelsrecord component
-