Package org.keycloak.broker.oid4vp
Record Class RequestedCredentials.Principal
java.lang.Object
java.lang.Record
org.keycloak.broker.oid4vp.RequestedCredentials.Principal
- Record Components:
credential- the id of the credential holding the claim. At least one required credential set must contain it in every optionclaim- the claim path in the dot notation of the mapper claims
- Enclosing class:
- RequestedCredentials
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclaim()Returns the value of theclaimrecord component.Returns the value of thecredentialrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Principal
Creates an instance of aPrincipalrecord class.- Parameters:
credential- the value for thecredentialrecord componentclaim- the value for theclaimrecord component
-
-
Method Details
-
claimPath
-
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). -
credential
Returns the value of thecredentialrecord component.- Returns:
- the value of the
credentialrecord component
-
claim
Returns the value of theclaimrecord component.- Returns:
- the value of the
claimrecord component
-