Class DefaultAuthorization
- java.lang.Object
-
- de.captaingoldfish.scim.sdk.server.endpoints.authorize.DefaultAuthorization
-
- All Implemented Interfaces:
Authorization
public final class DefaultAuthorization extends Object implements Authorization
author Pascal Knueppel
created at: 09.12.2019 - 11:31
a default implementation for authorization that is used if the developer did not give any authorization information's
-
-
Field Summary
-
Fields inherited from interface de.captaingoldfish.scim.sdk.server.endpoints.authorize.Authorization
log
-
-
Constructor Summary
Constructors Constructor Description DefaultAuthorization()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClientId()this is just a marker for error messages that will be printed into the log for debug purposes to be able to identify the client that tried to do a forbidden actionSet<String>getClientRoles()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.captaingoldfish.scim.sdk.server.endpoints.authorize.Authorization
isAuthorized, isClientAuthorized
-
-
-
-
Method Detail
-
getClientId
public String getClientId()
this is just a marker for error messages that will be printed into the log for debug purposes to be able to identify the client that tried to do a forbidden action- Specified by:
getClientIdin interfaceAuthorization
-
getClientRoles
public Set<String> getClientRoles()
- Specified by:
getClientRolesin interfaceAuthorization- Returns:
- the roles that an authenticated client possesses
-
-