Package dev.relism.flash.ext.security
Record Class SecurityScheme
java.lang.Object
java.lang.Record
dev.relism.flash.ext.security.SecurityScheme
- Record Components:
definition- the OpenAPI Security Scheme Object, verbatimissuer- the authorization server's issuer identifier —"/"when the application is its own, at whateverSecurityExtension.origin(dev.relism.flash.models.Request)it is reached by;nullfor anything else
public record SecurityScheme(String name, Map<String,Object> definition, String challenge, String issuer)
extends Record
A credential as OpenAPI names and defines it, the
WWW-Authenticate challenge an anonymous
API call receives for it, and — for OAuth — the issuer that grants it.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SecuritySchemeReturns the value of thechallengerecord component.Returns the value of thedefinitionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.issuer()Returns the value of theissuerrecord component.name()Returns the value of thenamerecord component.static SecuritySchemeopenIdConnect(String name, String issuer) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SecurityScheme
Creates an instance of aSecuritySchemerecord class.- Parameters:
name- the value for thenamerecord componentdefinition- the value for thedefinitionrecord componentchallenge- the value for thechallengerecord componentissuer- the value for theissuerrecord component
-
-
Method Details
-
bearer
-
openIdConnect
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
definition
Returns the value of thedefinitionrecord component.- Returns:
- the value of the
definitionrecord component
-
challenge
Returns the value of thechallengerecord component.- Returns:
- the value of the
challengerecord component
-
issuer
Returns the value of theissuerrecord component.- Returns:
- the value of the
issuerrecord component
-