Record Class PlanmonitorAuthenticationService.PlanmonitorAuthentication
java.lang.Object
java.lang.Record
nl.b3p.planmonitorwonen.api.security.PlanmonitorAuthenticationService.PlanmonitorAuthentication
- Enclosing class:
PlanmonitorAuthenticationService
-
Constructor Summary
ConstructorsConstructorDescriptionPlanmonitorAuthentication(org.springframework.security.core.Authentication authentication, boolean isProvincie, Set<String> gemeentes) Creates an instance of aPlanmonitorAuthenticationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.AuthenticationReturns the value of theauthenticationrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegemeentesrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisProvincierecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlanmonitorAuthentication
public PlanmonitorAuthentication(org.springframework.security.core.Authentication authentication, boolean isProvincie, Set<String> gemeentes) Creates an instance of aPlanmonitorAuthenticationrecord class.- Parameters:
authentication- the value for theauthenticationrecord componentisProvincie- the value for theisProvincierecord componentgemeentes- the value for thegemeentesrecord 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 '=='. -
authentication
public org.springframework.security.core.Authentication authentication()Returns the value of theauthenticationrecord component.- Returns:
- the value of the
authenticationrecord component
-
isProvincie
public boolean isProvincie()Returns the value of theisProvincierecord component.- Returns:
- the value of the
isProvincierecord component
-
gemeentes
Returns the value of thegemeentesrecord component.- Returns:
- the value of the
gemeentesrecord component
-