Class AuthorizationService
- java.lang.Object
-
- io.jans.configapi.security.service.AuthorizationService
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
OpenIdAuthorizationService
public abstract class AuthorizationService extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthorizationService()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description List<String>
findMissingElements(List<String> list1, List<String> list2)
List<String>
getApiApprovedIssuer()
List<String>
getAuthSpecificScopeRequired(jakarta.ws.rs.container.ResourceInfo resourceInfo)
protected jakarta.ws.rs.core.Response
getErrorResponse(jakarta.ws.rs.core.Response.Status status, String detail)
List<String>
getRequestedScopes(jakarta.ws.rs.container.ResourceInfo resourceInfo)
List<String>
getRequestedScopes(String path)
boolean
isConfigOauthEnabled()
boolean
isEqualCollection(List<String> list1, List<String> list2)
abstract String
processAuthorization(String token, String issuer, jakarta.ws.rs.container.ResourceInfo resourceInfo, String method, String path)
boolean
validateScope(List<String> authScopes, List<String> resourceScopes)
-
-
-
Method Detail
-
processAuthorization
public abstract String processAuthorization(String token, String issuer, jakarta.ws.rs.container.ResourceInfo resourceInfo, String method, String path) throws Exception
- Throws:
Exception
-
getErrorResponse
protected jakarta.ws.rs.core.Response getErrorResponse(jakarta.ws.rs.core.Response.Status status, String detail)
-
getRequestedScopes
public List<String> getRequestedScopes(jakarta.ws.rs.container.ResourceInfo resourceInfo)
-
isConfigOauthEnabled
public boolean isConfigOauthEnabled()
-
getAuthSpecificScopeRequired
public List<String> getAuthSpecificScopeRequired(jakarta.ws.rs.container.ResourceInfo resourceInfo)
-
findMissingElements
public List<String> findMissingElements(List<String> list1, List<String> list2)
-
-