Package org.keycloak.credential
Record Class CredentialUpdate
java.lang.Object
java.lang.Record
org.keycloak.credential.CredentialUpdate
- Record Components:
handled- whether the updater handled the inputstoredCredential- the credential written to the Keycloak credential store, ornullif the updater wrote it elsewhere or has no data about it
The outcome of a credential update performed by a
CredentialInputUpdater.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCredentialUpdate(boolean handled, CredentialModel storedCredential) Creates an instance of aCredentialUpdaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanhandled()Returns the value of thehandledrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thestoredCredentialrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NOT_HANDLED
-
-
Constructor Details
-
CredentialUpdate
Creates an instance of aCredentialUpdaterecord class.- Parameters:
handled- the value for thehandledrecord componentstoredCredential- the value for thestoredCredentialrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
handled
public boolean handled()Returns the value of thehandledrecord component.- Returns:
- the value of the
handledrecord component
-
storedCredential
Returns the value of thestoredCredentialrecord component.- Returns:
- the value of the
storedCredentialrecord component
-