Index
All Classes and Interfaces|All Packages|Serialized Form
A
- authenticate(Request) - Method in interface dev.relism.flash.ext.security.AuthenticationMechanism
-
The caller, or
nullwhen the request carries no credential of this kind. - authenticate(Request) - Method in class dev.relism.flash.ext.security.SecurityExtension
-
The caller, or
nullwhen no mechanism recognises a credential. - Authenticated - Annotation Interface in dev.relism.flash.ext.security
-
The handler or MCP tool requires an authenticated caller.
- AUTHENTICATED - Static variable in class dev.relism.flash.ext.security.SecurityPolicy
-
Any authenticated caller.
- AuthenticationEntryPoint - Interface in dev.relism.flash.ext.security
-
Answers a request that needs a caller and carries no credential at all.
- AuthenticationFailedException - Exception Class in dev.relism.flash.ext.security
-
A credential was presented and rejected.
- AuthenticationFailedException(String) - Constructor for exception class dev.relism.flash.ext.security.AuthenticationFailedException
- AuthenticationMechanism - Interface in dev.relism.flash.ext.security
-
Reads one kind of credential off a request.
B
- bearer(String, String) - Static method in record class dev.relism.flash.ext.security.SecurityScheme
C
- challenge() - Method in exception class dev.relism.flash.ext.security.AuthenticationFailedException
- challenge() - Method in record class dev.relism.flash.ext.security.SecurityScheme
-
Returns the value of the
challengerecord component. - commence(Request, Response) - Method in interface dev.relism.flash.ext.security.AuthenticationEntryPoint
- configure(FlashRegistrar<?>, FlashContext) - Method in class dev.relism.flash.ext.security.SecurityExtension
- current() - Static method in class dev.relism.flash.ext.security.SecurityIdentity
-
The caller of the request this thread is handling;
nullwhen it is anonymous.
D
- definition() - Method in record class dev.relism.flash.ext.security.SecurityScheme
-
Returns the value of the
definitionrecord component. - delete(String) - Method in class dev.relism.flash.ext.security.InMemorySessionStore
- delete(String) - Method in interface dev.relism.flash.ext.security.SessionStore
- dev.relism.flash.ext.security - package dev.relism.flash.ext.security
E
- enforce(SecurityPolicy) - Method in class dev.relism.flash.ext.security.SecurityExtension
- enforce(SecurityPolicy, AuthenticationEntryPoint) - Method in class dev.relism.flash.ext.security.SecurityExtension
-
anonymousanswers a caller without credentials on this route instead of the configured entry point. - entryPoint(AuthenticationEntryPoint) - Method in class dev.relism.flash.ext.security.SecurityExtension
-
Replaces the default: a browser is redirected to sign in, anything else gets 401 with every challenge.
- equals(Object) - Method in record class dev.relism.flash.ext.security.LoginMethod
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.relism.flash.ext.security.SecurityScheme
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.relism.flash.ext.security.Session
-
Indicates whether some other object is "equal to" this one.
- expiresAt() - Method in record class dev.relism.flash.ext.security.Session
-
Returns the value of the
expiresAtrecord component.
F
- fillInStackTrace() - Method in exception class dev.relism.flash.ext.security.AuthenticationFailedException
- find(String) - Method in class dev.relism.flash.ext.security.InMemorySessionStore
- find(String) - Method in interface dev.relism.flash.ext.security.SessionStore
-
The session, or
null. - FORM - Enum constant in enum class dev.relism.flash.ext.security.LoginMethod.Kind
-
A client posts
usernameandpasswordtourl.
G
- get(String) - Method in interface dev.relism.flash.ext.security.Target
-
The value called
name, ornullwhen the call does not carry one.
H
- hasAudience(String) - Method in interface dev.relism.flash.ext.security.Principal
-
Whether the credential was issued for
audience(RFC 8707). - hashCode() - Method in record class dev.relism.flash.ext.security.LoginMethod
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.relism.flash.ext.security.SecurityScheme
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.relism.flash.ext.security.Session
-
Returns a hash code value for this object.
- hasRole(SecurityIdentity, String, Target) - Method in interface dev.relism.flash.ext.security.RoleResolver
- hasRole(String) - Method in class dev.relism.flash.ext.security.SecurityIdentity
- hasRole(String, Target) - Method in class dev.relism.flash.ext.security.SecurityIdentity
- hasScope(String) - Method in interface dev.relism.flash.ext.security.Principal
-
Whether the credential grants
scope. - hasScope(String) - Method in class dev.relism.flash.ext.security.SecurityIdentity
I
- id() - Method in record class dev.relism.flash.ext.security.LoginMethod
-
Returns the value of the
idrecord component. - id() - Method in record class dev.relism.flash.ext.security.Session
-
Returns the value of the
idrecord component. - InMemorySessionStore - Class in dev.relism.flash.ext.security
-
One instance's sessions, lost on restart.
- InMemorySessionStore() - Constructor for class dev.relism.flash.ext.security.InMemorySessionStore
- issuer() - Method in record class dev.relism.flash.ext.security.SecurityScheme
-
Returns the value of the
issuerrecord component.
K
- kind() - Method in record class dev.relism.flash.ext.security.LoginMethod
-
Returns the value of the
kindrecord component.
L
- loginMethod(LoginMethod) - Method in class dev.relism.flash.ext.security.SecurityExtension
- LoginMethod - Record Class in dev.relism.flash.ext.security
-
A way to sign in, listed at
GET /auth/methodsfor a client to offer. - LoginMethod(String, String, String, LoginMethod.Kind) - Constructor for record class dev.relism.flash.ext.security.LoginMethod
-
Creates an instance of a
LoginMethodrecord class. - LoginMethod.Kind - Enum Class in dev.relism.flash.ext.security
- loginPage(String) - Method in class dev.relism.flash.ext.security.SecurityExtension
-
Where a browser signs in, unless the only
LoginMethodis a redirect it can follow directly. - logoutUrl() - Method in interface dev.relism.flash.ext.security.Principal
-
Where signing out sends the browser;
nullfor the application root.
M
- mechanism(AuthenticationMechanism) - Method in class dev.relism.flash.ext.security.SecurityExtension
N
- name() - Method in record class dev.relism.flash.ext.security.LoginMethod
-
Returns the value of the
namerecord component. - name() - Method in interface dev.relism.flash.ext.security.Principal
-
Unique within the mechanism that produced it.
- name() - Method in record class dev.relism.flash.ext.security.SecurityScheme
-
Returns the value of the
namerecord component. - NONE - Static variable in interface dev.relism.flash.ext.security.Target
-
A role checked on nothing in particular.
O
- of(Class<?>) - Static method in class dev.relism.flash.ext.security.SecurityPolicy
-
The policy
typedeclares, ornullwhen it carries no security annotation. - on() - Element in annotation interface dev.relism.flash.ext.security.RolesAllowed
-
Names of the path or query parameters (tool arguments on MCP) that identify the resource the role is held on —
on = "project"checks the role on/projects/{project}. - openIdConnect(String, String) - Static method in record class dev.relism.flash.ext.security.SecurityScheme
P
- PermitAll - Annotation Interface in dev.relism.flash.ext.security
-
Anyone may call the handler.
- permitsRoles(SecurityIdentity, Target) - Method in class dev.relism.flash.ext.security.SecurityPolicy
- permitsScopes(SecurityIdentity) - Method in class dev.relism.flash.ext.security.SecurityPolicy
- policy(Class<?>) - Method in class dev.relism.flash.ext.security.SecurityExtension
-
The policy
type's annotations declare, checked against this configuration — declaring roles without aRoleResolverfails here, at boot. - POLICY - Static variable in class dev.relism.flash.ext.security.SecurityExtension
-
The node security annotations mount under, for middleware that must run before or after it.
- principal() - Method in class dev.relism.flash.ext.security.SecurityIdentity
- principal() - Method in record class dev.relism.flash.ext.security.Session
-
Returns the value of the
principalrecord component. - principal(Class<P>) - Method in class dev.relism.flash.ext.security.SecurityIdentity
-
The principal as
type, ornullwhen another mechanism authenticated the caller. - Principal - Interface in dev.relism.flash.ext.security
-
Who an
AuthenticationMechanismproved the caller to be.
R
- REDIRECT - Enum constant in enum class dev.relism.flash.ext.security.LoginMethod.Kind
-
A browser navigates to
urland comes back signed in — OpenID Connect, for instance. - refresh(Session) - Method in interface dev.relism.flash.ext.security.SessionRefresher
- refresher(Class<? extends Principal>, SessionRefresher) - Method in class dev.relism.flash.ext.security.SecurityExtension
- request() - Method in class dev.relism.flash.ext.security.SecurityIdentity
-
The request being authorized.
- required() - Method in class dev.relism.flash.ext.security.SecurityPolicy
-
False only for
PermitAll. - requiresRoles() - Method in class dev.relism.flash.ext.security.SecurityPolicy
- resolve(Principal) - Method in interface dev.relism.flash.ext.security.UserResolver
- RoleResolver - Interface in dev.relism.flash.ext.security
-
Whether a caller holds a role — read from a token, a database, anywhere.
- roles(RoleResolver) - Method in class dev.relism.flash.ext.security.SecurityExtension
-
Required by
RolesAllowed; a handler that declares roles without one fails the boot. - RolesAllowed - Annotation Interface in dev.relism.flash.ext.security
-
The caller must hold at least one of these roles, as decided by the configured
RoleResolver.
S
- save(Session) - Method in class dev.relism.flash.ext.security.InMemorySessionStore
- save(Session) - Method in interface dev.relism.flash.ext.security.SessionStore
- scheme() - Method in interface dev.relism.flash.ext.security.AuthenticationMechanism
-
How OpenAPI documents the credential and a 401 challenges for it;
nullfor neither. - scheme(SecurityScheme) - Method in class dev.relism.flash.ext.security.SecurityExtension
-
Documents and challenges for a credential beyond the one
AuthenticationMechanism.scheme()names. - schemes() - Method in class dev.relism.flash.ext.security.SecurityExtension
-
The schemes of every registered mechanism, in registration order.
- ScopesAllowed - Annotation Interface in dev.relism.flash.ext.security
-
The caller's credential must grant every one of these scopes.
- SecurityExtension - Class in dev.relism.flash.ext.security
-
Flash security: the authentication chain, the policies security annotations declare, sessions, and the
/auth/logoutand/auth/methodsroutes. - SecurityExtension() - Constructor for class dev.relism.flash.ext.security.SecurityExtension
- SecurityIdentity - Class in dev.relism.flash.ext.security
-
The authenticated caller of the current request: the
Principala mechanism produced, the application user it resolves to, and the roles and scopes it holds. - SecurityPolicy - Class in dev.relism.flash.ext.security
-
What a handler's or tool's security annotations require, compiled once at boot.
- SecurityScheme - Record Class in dev.relism.flash.ext.security
-
A credential as OpenAPI names and defines it, the
WWW-Authenticatechallenge an anonymous API call receives for it, and — for OAuth — the issuer that grants it. - SecurityScheme(String, Map<String, Object>, String, String) - Constructor for record class dev.relism.flash.ext.security.SecurityScheme
-
Creates an instance of a
SecuritySchemerecord class. - Session - Record Class in dev.relism.flash.ext.security
-
A signed-in principal, kept server-side under the id its cookie carries.
- Session(String, Principal, Instant) - Constructor for record class dev.relism.flash.ext.security.Session
-
Creates an instance of a
Sessionrecord class. - SessionRefresher - Interface in dev.relism.flash.ext.security
-
Renews an expired session — with a refresh token, typically.
- sessions(SessionStore) - Method in class dev.relism.flash.ext.security.SecurityExtension
- SessionStore - Interface in dev.relism.flash.ext.security
-
Where sessions live.
- sessionTimeout(Duration) - Method in class dev.relism.flash.ext.security.SecurityExtension
- signIn(Request, Response, Principal) - Method in class dev.relism.flash.ext.security.SecurityExtension
-
Starts a session for
principallasting the configured timeout. - signIn(Request, Response, Principal, Instant) - Method in class dev.relism.flash.ext.security.SecurityExtension
- signOut(Request, Response) - Method in class dev.relism.flash.ext.security.SecurityExtension
-
Ends the caller's session and returns where the browser goes next.
T
- Target - Interface in dev.relism.flash.ext.security
-
The resource a role is checked on: the values
RolesAllowed.on()names, read from path and query parameters on HTTP and from tool arguments on MCP. - toString() - Method in record class dev.relism.flash.ext.security.LoginMethod
-
Returns a string representation of this record class.
- toString() - Method in record class dev.relism.flash.ext.security.SecurityScheme
-
Returns a string representation of this record class.
- toString() - Method in record class dev.relism.flash.ext.security.Session
-
Returns a string representation of this record class.
U
- url() - Method in record class dev.relism.flash.ext.security.LoginMethod
-
Returns the value of the
urlrecord component. - user(Class<U>) - Method in class dev.relism.flash.ext.security.SecurityIdentity
-
The application user, resolved once per request by the configured
UserResolver. - UserResolver<U> - Interface in dev.relism.flash.ext.security
-
The application user a verified principal belongs to — typically found, or provisioned, by issuer and subject.
- users(UserResolver<?>) - Method in class dev.relism.flash.ext.security.SecurityExtension
-
Resolves
SecurityIdentity.user— default: the principal itself.
V
- value() - Element in annotation interface dev.relism.flash.ext.security.RolesAllowed
- value() - Element in annotation interface dev.relism.flash.ext.security.ScopesAllowed
- valueOf(String) - Static method in enum class dev.relism.flash.ext.security.LoginMethod.Kind
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class dev.relism.flash.ext.security.LoginMethod.Kind
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Serialized Form