Class IridaOAuth2AuthorizationService
- java.lang.Object
-
- org.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService
-
- ca.corefacility.bioinformatics.irida.oauth2.IridaOAuth2AuthorizationService
-
- All Implemented Interfaces:
org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
public class IridaOAuth2AuthorizationService extends org.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService
A customized version ofJdbcOAuth2AuthorizationService
that adds a method to findOAuth2Authorization
s withOAuth2AccessToken
s for a specificRegisteredClient
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService
org.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService.OAuth2AuthorizationParametersMapper, org.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService.OAuth2AuthorizationRowMapper
-
-
Constructor Summary
Constructors Constructor Description IridaOAuth2AuthorizationService(org.springframework.jdbc.core.JdbcOperations jdbcOperations, org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<org.springframework.security.oauth2.server.authorization.OAuth2Authorization>
findAccessTokensByRegisteredClientId(java.lang.String registeredClientId)
org.springframework.security.oauth2.server.authorization.OAuth2Authorization
findById(java.lang.String id)
org.springframework.security.oauth2.server.authorization.OAuth2Authorization
findByToken(java.lang.String token, org.springframework.security.oauth2.core.OAuth2TokenType tokenType)
void
remove(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization)
void
save(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization)
-
-
-
Method Detail
-
findAccessTokensByRegisteredClientId
public java.util.List<org.springframework.security.oauth2.server.authorization.OAuth2Authorization> findAccessTokensByRegisteredClientId(java.lang.String registeredClientId)
-
findByToken
public org.springframework.security.oauth2.server.authorization.OAuth2Authorization findByToken(java.lang.String token, @Nullable org.springframework.security.oauth2.core.OAuth2TokenType tokenType)
- Specified by:
findByToken
in interfaceorg.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
- Overrides:
findByToken
in classorg.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService
-
findById
public org.springframework.security.oauth2.server.authorization.OAuth2Authorization findById(java.lang.String id)
- Specified by:
findById
in interfaceorg.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
- Overrides:
findById
in classorg.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService
-
remove
public void remove(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization)
- Specified by:
remove
in interfaceorg.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
- Overrides:
remove
in classorg.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService
-
save
public void save(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization)
- Specified by:
save
in interfaceorg.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
- Overrides:
save
in classorg.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService
-
-