Record Class OidcClient.ResourceTokenRequest
java.lang.Object
java.lang.Record
io.fluxzero.idp.client.OidcClient.ResourceTokenRequest
- Enclosing class:
OidcClient
-
Constructor Summary
ConstructorsConstructorDescriptionResourceTokenRequest(String resource, Set<String> scopes) ResourceTokenRequest(String resource, Set<String> scopes, String identityTenantId, String identitySpaceId) Creates an instance of aResourceTokenRequestrecord 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.Returns the value of theidentitySpaceIdrecord component.Returns the value of theidentityTenantIdrecord component.resource()Returns the value of theresourcerecord component.scopes()Returns the value of thescopesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResourceTokenRequest
-
ResourceTokenRequest
public ResourceTokenRequest(String resource, Set<String> scopes, String identityTenantId, String identitySpaceId) Creates an instance of aResourceTokenRequestrecord class.- Parameters:
resource- the value for theresourcerecord componentscopes- the value for thescopesrecord componentidentityTenantId- the value for theidentityTenantIdrecord componentidentitySpaceId- the value for theidentitySpaceIdrecord 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). -
resource
Returns the value of theresourcerecord component.- Returns:
- the value of the
resourcerecord component
-
scopes
-
identityTenantId
Returns the value of theidentityTenantIdrecord component.- Returns:
- the value of the
identityTenantIdrecord component
-
identitySpaceId
Returns the value of theidentitySpaceIdrecord component.- Returns:
- the value of the
identitySpaceIdrecord component
-