Class HvlAuthorizationDefaultContextService
java.lang.Object
tr.com.havelsan.javarch.oauth.auth.starter.oidc.service.HvlAuthorizationDefaultContextService
- All Implemented Interfaces:
org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
@Transactional
public class HvlAuthorizationDefaultContextService
extends Object
implements org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
It is use to manage context data, it is default bean until another component is selected such as redis.
-
Constructor Summary
ConstructorDescriptionInstantiates a new Authorization context service. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.server.authorization.OAuth2Authorization
org.springframework.security.oauth2.server.authorization.OAuth2Authorization
findByToken
(String token, org.springframework.security.oauth2.server.authorization.OAuth2TokenType tokenType) void
remove
(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorizationContext) void
save
(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorizationContext)
-
Constructor Details
-
HvlAuthorizationDefaultContextService
public HvlAuthorizationDefaultContextService()Instantiates a new Authorization context service.
-
-
Method Details
-
save
public void save(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorizationContext) - Specified by:
save
in interfaceorg.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
-
remove
public void remove(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorizationContext) - Specified by:
remove
in interfaceorg.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
-
findById
public org.springframework.security.oauth2.server.authorization.OAuth2Authorization findById(String id) - Specified by:
findById
in interfaceorg.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
-
findByToken
public org.springframework.security.oauth2.server.authorization.OAuth2Authorization findByToken(String token, org.springframework.security.oauth2.server.authorization.OAuth2TokenType tokenType) - Specified by:
findByToken
in interfaceorg.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
-