Index

A B C D E H I J L M O P R S T 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

acceptedAudiences - Variable in class com.irurueta.authserver.resourceserver.api.web.security.AudienceRolesOpaqueTokenIntrospector
Audiences this resource server accepts.
ACR_CLAIM - Static variable in class com.irurueta.authserver.resourceserver.api.web.security.StepUpAuthorizationManager
Claim carrying the authentication context class reference.
ACR_VALUES_SEPARATOR - Static variable in class com.irurueta.authserver.resourceserver.api.web.security.StepUpAuthorizationManager
Separator of the configured acr-values: any run of whitespace.
acrValues - Variable in record class com.irurueta.authserver.resourceserver.api.web.security.StepUpProperties
The field for the acrValues record component.
acrValues() - Method in record class com.irurueta.authserver.resourceserver.api.web.security.StepUpProperties
Returns the value of the acrValues record component.
ADMIN_ROLE - Static variable in class com.irurueta.authserver.resourceserver.api.web.security.BearerAuthorities
Authority of an administrator.
API_DOCS_PATH - Static variable in class com.irurueta.authserver.resourceserver.api.web.OpenApiConfig
Path of the OpenAPI document.
apiGroup() - Method in class com.irurueta.authserver.resourceserver.api.web.OpenApiConfig
Groups the application's own API paths.
AudienceRolesOpaqueTokenIntrospector - Class in com.irurueta.authserver.resourceserver.api.web.security
Decorates an introspector of the opaque-token variant: rejects tokens whose audience is not accepted and adds the role authorities of the roles attribute, so the opaque variant behaves like the JWT one.
AudienceRolesOpaqueTokenIntrospector() - Constructor for class com.irurueta.authserver.resourceserver.api.web.security.AudienceRolesOpaqueTokenIntrospector
 
AUTH_TIME_CLAIM - Static variable in class com.irurueta.authserver.resourceserver.api.web.security.StepUpAuthorizationManager
Claim carrying the time of the user's authentication, in epoch seconds.
authorize(Supplier<? extends Authentication>, RequestAuthorizationContext) - Method in class com.irurueta.authserver.resourceserver.api.web.security.StepUpAuthorizationManager
 
authorize(HttpSecurity, StepUpAuthorizationManager) - Static method in class com.irurueta.authserver.resourceserver.api.web.security.SecurityConfig
Declares which requests are public and which need a scope.

B

BEARER_SCHEME - Static variable in class com.irurueta.authserver.resourceserver.api.web.OpenApiConfig
Name of the bearer-token security scheme.
BearerAuthorities - Class in com.irurueta.authserver.resourceserver.api.web.security
Maps the roles claim of a token onto authorities, for both JWT and opaque tokens.
BearerAuthorities() - Constructor for class com.irurueta.authserver.resourceserver.api.web.security.BearerAuthorities
Utility class: not meant to be instantiated.

C

caller() - Static method in class com.irurueta.authserver.resourceserver.api.web.documents.DocumentController
Returns the authenticated caller.
clock - Variable in class com.irurueta.authserver.resourceserver.api.web.security.StepUpAuthorizationManager
Source of the current time.
com.irurueta.authserver.resourceserver.api.web - package com.irurueta.authserver.resourceserver.api.web
Web adapter of the resource server: JWT bearer security.
com.irurueta.authserver.resourceserver.api.web.documents - package com.irurueta.authserver.resourceserver.api.web.documents
Documents REST API of the resource server.
com.irurueta.authserver.resourceserver.api.web.security - package com.irurueta.authserver.resourceserver.api.web.security
Resource server security configuration (JWT or opaque-token validation, method security, RFC 6750 error handling).
com.irurueta.authserver.resourceserver.api.web.v1.generated.api - package com.irurueta.authserver.resourceserver.api.web.v1.generated.api
 
com.irurueta.authserver.resourceserver.api.web.v1.generated.model - package com.irurueta.authserver.resourceserver.api.web.v1.generated.model
 
content - Variable in record class com.irurueta.authserver.resourceserver.api.web.v1.generated.model.DocumentResponse
The field for the content record component.
content() - Method in record class com.irurueta.authserver.resourceserver.api.web.v1.generated.model.DocumentResponse
Returns the value of the content record component.

D

delegate - Variable in class com.irurueta.authserver.resourceserver.api.web.security.AudienceRolesOpaqueTokenIntrospector
Introspector that calls the authorization server.
delegate - Variable in class com.irurueta.authserver.resourceserver.api.web.security.StepUpAccessDeniedHandler
Handler of every denial that is not a step-up requirement.
DELETE_AUTHORITY - Static variable in class com.irurueta.authserver.resourceserver.api.web.security.SecurityConfig
Authority of the scope that allows deleting documents.
deleteDocument(String) - Method in class com.irurueta.authserver.resourceserver.api.web.documents.DocumentController
Deletes a document of the caller; an administrator (ROLE_ADMIN) may delete any document.
deleteDocument(String) - Method in interface com.irurueta.authserver.resourceserver.api.web.v1.generated.api.DocumentsApi
DELETE /api/documents/{id} : Deletes a document Deletes one of the caller's documents; an administrator may delete any.
deleteDocumentUseCase - Variable in class com.irurueta.authserver.resourceserver.api.web.documents.DocumentController
Use case that deletes a document.
DOCUMENT_PATH - Static variable in class com.irurueta.authserver.resourceserver.api.web.security.SecurityConfig
Path pattern of a single document.
DocumentController - Class in com.irurueta.authserver.resourceserver.api.web.documents
Documents API, as the contract apis/resource-server/rest-server/resource-server-api-v1.yaml describes it through the generated DocumentsApi.
DocumentController() - Constructor for class com.irurueta.authserver.resourceserver.api.web.documents.DocumentController
 
documentDtoMapper - Variable in class com.irurueta.authserver.resourceserver.api.web.documents.DocumentController
Maps the documents onto the generated DTO.
DocumentDtoMapper - Class in com.irurueta.authserver.resourceserver.api.web.documents
Maps domain documents onto the DTO generated from the contract, so a domain model is never returned from DocumentController.
DocumentDtoMapper() - Constructor for class com.irurueta.authserver.resourceserver.api.web.documents.DocumentDtoMapper
 
DocumentResponse - Record Class in com.irurueta.authserver.resourceserver.api.web.v1.generated.model
A document owned by a user.
DocumentResponse(String, String, String, String) - Constructor for record class com.irurueta.authserver.resourceserver.api.web.v1.generated.model.DocumentResponse
Creates an instance of a DocumentResponse record class.
DocumentsApi - Interface in com.irurueta.authserver.resourceserver.api.web.v1.generated.api
 

E

enabled - Variable in record class com.irurueta.authserver.resourceserver.api.web.security.StepUpProperties
The field for the enabled record component.
enabled() - Method in record class com.irurueta.authserver.resourceserver.api.web.security.StepUpProperties
Returns the value of the enabled record component.
equals(Object) - Method in record class com.irurueta.authserver.resourceserver.api.web.security.StepUpProperties
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.irurueta.authserver.resourceserver.api.web.security.StepUpRequiredDecision
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.irurueta.authserver.resourceserver.api.web.v1.generated.model.DocumentResponse
Indicates whether some other object is "equal to" this one.

H

handle(HttpServletRequest, HttpServletResponse, AccessDeniedException) - Method in class com.irurueta.authserver.resourceserver.api.web.security.StepUpAccessDeniedHandler
 
hashCode() - Method in record class com.irurueta.authserver.resourceserver.api.web.security.StepUpProperties
Returns a hash code value for this object.
hashCode() - Method in record class com.irurueta.authserver.resourceserver.api.web.security.StepUpRequiredDecision
Returns a hash code value for this object.
hashCode() - Method in record class com.irurueta.authserver.resourceserver.api.web.v1.generated.model.DocumentResponse
Returns a hash code value for this object.

I

id - Variable in record class com.irurueta.authserver.resourceserver.api.web.v1.generated.model.DocumentResponse
The field for the id record component.
id() - Method in record class com.irurueta.authserver.resourceserver.api.web.v1.generated.model.DocumentResponse
Returns the value of the id record component.
introspect(String) - Method in class com.irurueta.authserver.resourceserver.api.web.security.AudienceRolesOpaqueTokenIntrospector
 
isAccepted(Object) - Method in class com.irurueta.authserver.resourceserver.api.web.security.StepUpAuthorizationManager
Tells whether an acr value is one of the configured ones.
isAdministrator(Authentication) - Static method in class com.irurueta.authserver.resourceserver.api.web.security.BearerAuthorities
Tells whether the caller is an administrator.
isGranted() - Method in record class com.irurueta.authserver.resourceserver.api.web.security.StepUpRequiredDecision
 

J

jwtAuthenticationConverter() - Method in class com.irurueta.authserver.resourceserver.api.web.security.SecurityConfig
Maps the scope claim to SCOPE_* authorities (the default converter) and the roles claim to ROLE_* authorities.

L

listDocuments() - Method in class com.irurueta.authserver.resourceserver.api.web.documents.DocumentController
Lists the documents of the caller; an administrator (ROLE_ADMIN) sees every document.
listDocuments() - Method in interface com.irurueta.authserver.resourceserver.api.web.v1.generated.api.DocumentsApi
GET /api/documents : Lists documents Lists the caller's documents; an administrator sees all.
listDocumentsUseCase - Variable in class com.irurueta.authserver.resourceserver.api.web.documents.DocumentController
Use case that lists documents.

M

maxAge - Variable in record class com.irurueta.authserver.resourceserver.api.web.security.StepUpProperties
The field for the maxAge record component.
maxAge() - Method in record class com.irurueta.authserver.resourceserver.api.web.security.StepUpProperties
Returns the value of the maxAge record component.

O

opaqueTokenFilterChain(HttpSecurity, OpaqueTokenIntrospector, StepUpAuthorizationManager, StepUpAccessDeniedHandler) - Method in class com.irurueta.authserver.resourceserver.api.web.security.SecurityConfig
Builds the filter chain of the opaque-token variant.
opaqueTokenIntrospector(OAuth2ResourceServerProperties) - Method in class com.irurueta.authserver.resourceserver.api.web.security.SecurityConfig
Builds the introspector of the opaque-token variant.
OpenApiConfig - Class in com.irurueta.authserver.resourceserver.api.web
Runtime OpenAPI document of the HTTP API of the resource server, served by springdoc at "/v3/api-docs".
OpenApiConfig() - Constructor for class com.irurueta.authserver.resourceserver.api.web.OpenApiConfig
 
owner - Variable in record class com.irurueta.authserver.resourceserver.api.web.v1.generated.model.DocumentResponse
The field for the owner record component.
owner() - Method in record class com.irurueta.authserver.resourceserver.api.web.v1.generated.model.DocumentResponse
Returns the value of the owner record component.

P

PATH - Static variable in class com.irurueta.authserver.resourceserver.api.web.documents.DocumentController
Base path of the API, as declared by the contract.
PATH_DELETE_DOCUMENT - Static variable in interface com.irurueta.authserver.resourceserver.api.web.v1.generated.api.DocumentsApi
 
PATH_LIST_DOCUMENTS - Static variable in interface com.irurueta.authserver.resourceserver.api.web.v1.generated.api.DocumentsApi
 
properties - Variable in class com.irurueta.authserver.resourceserver.api.web.security.StepUpAccessDeniedHandler
Step-up policy, whose values are advertised in the challenge.
properties - Variable in class com.irurueta.authserver.resourceserver.api.web.security.StepUpAuthorizationManager
Step-up policy.

R

READ_AUTHORITY - Static variable in class com.irurueta.authserver.resourceserver.api.web.security.SecurityConfig
Authority of the scope that allows reading documents.
requireAudiences(List<String>) - Static method in class com.irurueta.authserver.resourceserver.api.web.security.SecurityConfig
Fails fast when no accepted audience is configured, instead of accepting every token.
requiredAuthority - Variable in class com.irurueta.authserver.resourceserver.api.web.security.StepUpAuthorizationManager
Authority the caller needs before the step-up requirement is evaluated.
resourceServerFilterChain(HttpSecurity, OAuth2ResourceServerProperties, StepUpAuthorizationManager, StepUpAccessDeniedHandler) - Method in class com.irurueta.authserver.resourceserver.api.web.security.SecurityConfig
Builds the filter chain validating bearer JWTs (the decoder is built from issuer-uri, and the configured audiences are validated by it).
resourceServerOpenApi() - Method in class com.irurueta.authserver.resourceserver.api.web.OpenApiConfig
Describes the API.
ROLE_PREFIX - Static variable in class com.irurueta.authserver.resourceserver.api.web.security.BearerAuthorities
Prefix of a role authority.
roleAuthorities(Collection<String>) - Static method in class com.irurueta.authserver.resourceserver.api.web.security.BearerAuthorities
Maps role names to authorities, adding the ROLE_ prefix when it is missing.
ROLES_CLAIM - Static variable in class com.irurueta.authserver.resourceserver.api.web.security.BearerAuthorities
Name of the claim that carries the roles.

S

satisfied(Authentication) - Method in class com.irurueta.authserver.resourceserver.api.web.security.StepUpAuthorizationManager
Tells whether the token proves the required authentication.
SecurityConfig - Class in com.irurueta.authserver.resourceserver.api.web.security
Secures the API: every request except the health endpoint and the OpenAPI document requires a valid bearer token issued by the authorization server for this resource server's audience.
SecurityConfig() - Constructor for class com.irurueta.authserver.resourceserver.api.web.security.SecurityConfig
 
stepUpAccessDeniedHandler(StepUpProperties) - Method in class com.irurueta.authserver.resourceserver.api.web.security.SecurityConfig
Builds the handler that answers the step-up requirement with the RFC 9470 challenge and every other denial with the RFC 6750 one.
StepUpAccessDeniedHandler - Class in com.irurueta.authserver.resourceserver.api.web.security
Answers a StepUpRequiredDecision with 401 and the RFC 9470 challenge (error="insufficient_user_authentication" with the required acr_values and max_age); every other denial goes to the delegate, the RFC 6750 handler.
StepUpAccessDeniedHandler() - Constructor for class com.irurueta.authserver.resourceserver.api.web.security.StepUpAccessDeniedHandler
 
stepUpAuthorizationManager(StepUpProperties) - Method in class com.irurueta.authserver.resourceserver.api.web.security.SecurityConfig
Builds the manager that requires a recent strong authentication to delete a document.
StepUpAuthorizationManager - Class in com.irurueta.authserver.resourceserver.api.web.security
Requires that the bearer token proves a recent strong authentication (RFC 9470): its acr claim must be one of the configured (space-separated) values and its auth_time claim no older than the configured maximum age.
StepUpAuthorizationManager() - Constructor for class com.irurueta.authserver.resourceserver.api.web.security.StepUpAuthorizationManager
 
StepUpProperties - Record Class in com.irurueta.authserver.resourceserver.api.web.security
Step-up authentication policy (RFC 9470) of the sensitive operations, bound from resourceserver.step-up.*.
StepUpProperties(boolean, String, Duration) - Constructor for record class com.irurueta.authserver.resourceserver.api.web.security.StepUpProperties
Validates the policy.
StepUpRequiredDecision - Record Class in com.irurueta.authserver.resourceserver.api.web.security
Denial that tells StepUpAccessDeniedHandler the caller is allowed to perform the operation but must authenticate again more strongly or more recently (RFC 9470), as opposed to an ordinary refusal.
StepUpRequiredDecision() - Constructor for record class com.irurueta.authserver.resourceserver.api.web.security.StepUpRequiredDecision
Creates an instance of a StepUpRequiredDecision record class.

T

title - Variable in record class com.irurueta.authserver.resourceserver.api.web.v1.generated.model.DocumentResponse
The field for the title record component.
title() - Method in record class com.irurueta.authserver.resourceserver.api.web.v1.generated.model.DocumentResponse
Returns the value of the title record component.
toInstant(Object) - Static method in class com.irurueta.authserver.resourceserver.api.web.security.StepUpAuthorizationManager
Converts an auth_time value, which is epoch seconds in a JWT or an introspection answer.
toResponse(Document) - Method in class com.irurueta.authserver.resourceserver.api.web.documents.DocumentDtoMapper
Maps one document.
toResponses(List<Document>) - Method in class com.irurueta.authserver.resourceserver.api.web.documents.DocumentDtoMapper
Maps several documents, keeping their order.
toString() - Method in record class com.irurueta.authserver.resourceserver.api.web.security.StepUpProperties
Returns a string representation of this record class.
toString() - Method in record class com.irurueta.authserver.resourceserver.api.web.security.StepUpRequiredDecision
Returns a string representation of this record class.
toString() - Method in record class com.irurueta.authserver.resourceserver.api.web.v1.generated.model.DocumentResponse
Returns a string representation of this record class.
A B C D E H I J L M O P R S T 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form