Record Class PrincipalAdderConf
java.lang.Object
java.lang.Record
io.kroxylicious.proxy.internal.subject.PrincipalAdderConf
- Record Components:
from- Names a function for extracting a string value from aContext.map- An optional list of mappings to apply to the `from`-extracted string.principalFactory- The name of aPrincipalFactoryimplementation class.
public record PrincipalAdderConf(String from, List<Map> map, String principalFactory)
extends Record
Configuration for a principal adder, which is responsible for contributing zero or more principals to the subject.
-
Constructor Summary
ConstructorsConstructorDescriptionPrincipalAdderConf(String from, List<Map> map, String principalFactory) Creates an instance of aPrincipalAdderConfrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.map()Returns the value of themaprecord component.Returns the value of theprincipalFactoryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PrincipalAdderConf
Creates an instance of aPrincipalAdderConfrecord class.- Parameters:
from- the value for thefromrecord componentmap- the value for themaprecord componentprincipalFactory- the value for theprincipalFactoryrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
map
Returns the value of themaprecord component.- Returns:
- the value of the
maprecord component
-
principalFactory
Returns the value of theprincipalFactoryrecord component.- Returns:
- the value of the
principalFactoryrecord component
-