Class AuthorizationService
java.lang.Object
io.jans.configapi.security.service.AuthorizationService
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
OpenIdAuthorizationService
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsAnyElement
(List<String> list1, List<String> list2) findMissingElements
(List<String> list1, List<String> list2) getAllScopeList
(Map<io.jans.configapi.core.util.ProtectionScopeType, List<String>> scopeMap) getAuthSpecificScopeRequired
(jakarta.ws.rs.container.ResourceInfo resourceInfo) protected jakarta.ws.rs.core.Response
getErrorResponse
(jakarta.ws.rs.core.Response.Status status, String detail) getRequestedScopes
(jakarta.ws.rs.container.ResourceInfo resourceInfo) boolean
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)
-
Constructor Details
-
AuthorizationService
public AuthorizationService()
-
-
Method Details
-
processAuthorization
public abstract String processAuthorization(String token, String issuer, jakarta.ws.rs.container.ResourceInfo resourceInfo, String method, String path) throws jakarta.ws.rs.WebApplicationException, Exception - Throws:
jakarta.ws.rs.WebApplicationException
Exception
-
getErrorResponse
protected jakarta.ws.rs.core.Response getErrorResponse(jakarta.ws.rs.core.Response.Status status, String detail) -
getRequestedScopes
-
validateScope
-
getAllScopeList
-
getApiApprovedIssuer
-
isConfigOauthEnabled
public boolean isConfigOauthEnabled() -
getAuthSpecificScopeRequired
-
findMissingElements
-
isEqualCollection
-
containsAnyElement
-