Record Class RefreshTokenContext
java.lang.Object
java.lang.Record
org.keycloak.protocol.oidc.refresh.RefreshTokenContext
public record RefreshTokenContext(org.keycloak.representations.RefreshToken oldRefreshToken, org.keycloak.protocol.oidc.grants.OAuth2GrantType.Context grantContext, RefreshTokenGrantType grant, TokenManager tokenManager, String scopeParameter, String resourceParameter)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRefreshTokenContext(org.keycloak.representations.RefreshToken oldRefreshToken, org.keycloak.protocol.oidc.grants.OAuth2GrantType.Context grantContext, RefreshTokenGrantType grant, TokenManager tokenManager, String scopeParameter, String resourceParameter) Creates an instance of aRefreshTokenContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.grant()Returns the value of thegrantrecord component.org.keycloak.protocol.oidc.grants.OAuth2GrantType.ContextReturns the value of thegrantContextrecord component.final inthashCode()Returns a hash code value for this object.org.keycloak.representations.RefreshTokenReturns the value of theoldRefreshTokenrecord component.Returns the value of theresourceParameterrecord component.Returns the value of thescopeParameterrecord component.Returns the value of thetokenManagerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RefreshTokenContext
public RefreshTokenContext(org.keycloak.representations.RefreshToken oldRefreshToken, org.keycloak.protocol.oidc.grants.OAuth2GrantType.Context grantContext, RefreshTokenGrantType grant, TokenManager tokenManager, String scopeParameter, String resourceParameter) Creates an instance of aRefreshTokenContextrecord class.- Parameters:
oldRefreshToken- the value for theoldRefreshTokenrecord componentgrantContext- the value for thegrantContextrecord componentgrant- the value for thegrantrecord componenttokenManager- the value for thetokenManagerrecord componentscopeParameter- the value for thescopeParameterrecord componentresourceParameter- the value for theresourceParameterrecord 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). -
oldRefreshToken
public org.keycloak.representations.RefreshToken oldRefreshToken()Returns the value of theoldRefreshTokenrecord component.- Returns:
- the value of the
oldRefreshTokenrecord component
-
grantContext
public org.keycloak.protocol.oidc.grants.OAuth2GrantType.Context grantContext()Returns the value of thegrantContextrecord component.- Returns:
- the value of the
grantContextrecord component
-
grant
Returns the value of thegrantrecord component.- Returns:
- the value of the
grantrecord component
-
tokenManager
Returns the value of thetokenManagerrecord component.- Returns:
- the value of the
tokenManagerrecord component
-
scopeParameter
Returns the value of thescopeParameterrecord component.- Returns:
- the value of the
scopeParameterrecord component
-
resourceParameter
Returns the value of theresourceParameterrecord component.- Returns:
- the value of the
resourceParameterrecord component
-