Record Class WwwAuthenticateChallenge
java.lang.Object
java.lang.Record
io.micronaut.security.authentication.WwwAuthenticateChallenge
- Record Components:
authScheme- Authentication SchemaauthParameters- Authentication Parameters
public record WwwAuthenticateChallenge(@NonNull String authScheme, @NonNull Map<String,Object> authParameters)
extends Record
This is a helper class to create a challenge, the value of a WWW-Authenticate response header as described in WWW-Authenticate.
- Since:
- 4.14.0
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionWwwAuthenticateChallenge(@NonNull String authScheme, @NonNull Map<String, Object> authParameters) Creates an instance of aWwwAuthenticateChallengerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthParametersrecord component.@NonNull StringReturns the value of theauthSchemerecord component.static @NonNull WwwAuthenticateChallenge.Builderbuilder()Create a new builder.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NonNull StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WwwAuthenticateChallenge
public WwwAuthenticateChallenge(@NonNull @NonNull String authScheme, @NonNull @NonNull Map<String, Object> authParameters) Creates an instance of aWwwAuthenticateChallengerecord class.- Parameters:
authScheme- the value for theauthSchemerecord componentauthParameters- the value for theauthParametersrecord 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. -
builder
Create a new builder.- Returns:
- Builder
-
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). -
authScheme
Returns the value of theauthSchemerecord component.- Returns:
- the value of the
authSchemerecord component
-
authParameters
Returns the value of theauthParametersrecord component.- Returns:
- the value of the
authParametersrecord component
-