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 aApiTokenContext
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.com.google.common.collect.ImmutableCollection<SecurityLevelConfig>
Returns the value of thesecurityLevels
record component.Returns the value of thetokenName
record component.final String
toString()
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 aApiTokenContext
record class.- Parameters:
tokenName
- the value for thetokenName
record componentsecurityLevels
- the value for thesecurityLevels
record component
-
-
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)
. -
tokenName
Returns the value of thetokenName
record component.- Returns:
- the value of the
tokenName
record component
-
securityLevels
Returns the value of thesecurityLevels
record component.- Returns:
- the value of the
securityLevels
record component
-