Index

A C F G I J L M P S T U V 
All Classes and Interfaces|All Packages|Constant Field Values

A

AuthController - Class in com.oc_p9.gateway_service.controller
 
AuthController(JwtUtil) - Constructor for class com.oc_p9.gateway_service.controller.AuthController
 
AuthController.AuthRequest - Class in com.oc_p9.gateway_service.controller
 
AuthController.AuthResponse - Class in com.oc_p9.gateway_service.controller
 
AuthRequest() - Constructor for class com.oc_p9.gateway_service.controller.AuthController.AuthRequest
 
AuthResponse(String) - Constructor for class com.oc_p9.gateway_service.controller.AuthController.AuthResponse
 

C

com.oc_p9.gateway_service - package com.oc_p9.gateway_service
 
com.oc_p9.gateway_service.configuration - package com.oc_p9.gateway_service.configuration
 
com.oc_p9.gateway_service.controller - package com.oc_p9.gateway_service.controller
 
com.oc_p9.gateway_service.util - package com.oc_p9.gateway_service.util
 
CorsConfig - Class in com.oc_p9.gateway_service.configuration
Configuration CORS pour autoriser les appels du frontend.
CorsConfig() - Constructor for class com.oc_p9.gateway_service.configuration.CorsConfig
 
corsFilter() - Method in class com.oc_p9.gateway_service.configuration.CorsConfig
Définit les règles CORS : origine autorisée, en-têtes et méthodes acceptées.

F

filter(ServerWebExchange, WebFilterChain) - Method in class com.oc_p9.gateway_service.configuration.JwtAuthenticationFilter
Filtre les requêtes pour vérifier la présence et la validité d'un token JWT.

G

GatewayServiceApplication - Class in com.oc_p9.gateway_service
 
GatewayServiceApplication() - Constructor for class com.oc_p9.gateway_service.GatewayServiceApplication
 
generateToken(String) - Method in class com.oc_p9.gateway_service.util.JwtUtil
Génère un token JWT pour un utilisateur.
getUsernameFromToken(String) - Method in class com.oc_p9.gateway_service.util.JwtUtil
Extrait le nom d’utilisateur contenu dans le token.

I

isValidUser(String, String) - Method in class com.oc_p9.gateway_service.controller.AuthController
 

J

JwtAuthenticationFilter - Class in com.oc_p9.gateway_service.configuration
Filtre WebFlux pour authentifier les requêtes HTTP via un token JWT.
JwtAuthenticationFilter(JwtUtil) - Constructor for class com.oc_p9.gateway_service.configuration.JwtAuthenticationFilter
 
jwtExpirationMs - Variable in class com.oc_p9.gateway_service.util.JwtUtil
 
jwtFilter - Variable in class com.oc_p9.gateway_service.configuration.SecurityConfig
 
jwtUtil - Variable in class com.oc_p9.gateway_service.configuration.JwtAuthenticationFilter
 
jwtUtil - Variable in class com.oc_p9.gateway_service.controller.AuthController
 
JwtUtil - Class in com.oc_p9.gateway_service.util
Classe pour gérer les opérations liées au JWT.
JwtUtil(String) - Constructor for class com.oc_p9.gateway_service.util.JwtUtil
Initialise la clé secrète utilisée pour signer les tokens.

L

login(AuthController.AuthRequest) - Method in class com.oc_p9.gateway_service.controller.AuthController
 
logout() - Method in class com.oc_p9.gateway_service.controller.AuthController
 

M

main(String[]) - Static method in class com.oc_p9.gateway_service.GatewayServiceApplication
 

P

password - Variable in class com.oc_p9.gateway_service.controller.AuthController.AuthRequest
 

S

secretKey - Variable in class com.oc_p9.gateway_service.util.JwtUtil
 
SecurityConfig - Class in com.oc_p9.gateway_service.configuration
Configuration de la sécurité pour la gateway Utilise Spring Security avec WebFlux pour gérer les règles de sécurité.
SecurityConfig(JwtAuthenticationFilter) - Constructor for class com.oc_p9.gateway_service.configuration.SecurityConfig
Constructeur qui injecte le filtre JWT.
securityFilterChain(ServerHttpSecurity) - Method in class com.oc_p9.gateway_service.configuration.SecurityConfig
Configure les règles de sécurité pour les routes HTTP.

T

token - Variable in class com.oc_p9.gateway_service.controller.AuthController.AuthResponse
 

U

unauthorizedEntryPoint() - Method in class com.oc_p9.gateway_service.configuration.SecurityConfig
Définit le comportement quand un utilisateur non authentifié tente d'accéder à une ressource protégée.
username - Variable in class com.oc_p9.gateway_service.controller.AuthController.AuthRequest
 

V

validateToken(String) - Method in class com.oc_p9.gateway_service.util.JwtUtil
Vérifie si un token est valide.
validityInSeconds - Variable in class com.oc_p9.gateway_service.controller.AuthController
 
A C F G I J L M P S T U V 
All Classes and Interfaces|All Packages|Constant Field Values