Record Class LDAPPrincipalSerializer.DeserializedError
java.lang.Object
java.lang.Record
net.shibboleth.idp.authn.principal.impl.LDAPPrincipalSerializer.DeserializedError
- All Implemented Interfaces:
AccountState.Error
- Enclosing class:
- LDAPPrincipalSerializer
private static record LDAPPrincipalSerializer.DeserializedError(int code, String message)
extends Record
implements AccountState.Error
Error implementation that stores deserialized properties.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDeserializedError(int code, String message) Creates an instance of aDeserializedErrorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcode()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.intgetCode()final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.voidfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
code
private final int codeThe field for thecoderecord component. -
message
The field for themessagerecord component.
-
-
Constructor Details
-
DeserializedError
Creates an instance of aDeserializedErrorrecord class.- Parameters:
code- the value for thecoderecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
getCode
public int getCode()- Specified by:
getCodein interfaceAccountState.Error
-
getMessage
- Specified by:
getMessagein interfaceAccountState.Error
-
throwSecurityException
- Specified by:
throwSecurityExceptionin interfaceAccountState.Error- Throws:
LoginException
-
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 '=='. -
code
public int code()Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-