Class DefaultAuthorization
java.lang.Object
de.captaingoldfish.scim.sdk.server.endpoints.authorize.DefaultAuthorization
- All Implemented Interfaces:
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
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanthe default authorization object will always return true to authenticate the user.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 actionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.captaingoldfish.scim.sdk.server.endpoints.authorize.Authorization
getRealm, isAuthorized, isClientAuthorized
-
Constructor Details
-
DefaultAuthorization
public DefaultAuthorization()
-
-
Method Details
-
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
- Specified by:
getClientRolesin interfaceAuthorization- Returns:
- the roles that an authenticated client possesses
-
authenticate
the default authorization object will always return true to authenticate the user. Be careful when using this!- Specified by:
authenticatein interfaceAuthorization- Parameters:
httpHeaders- in case that the authentication details are sent in the http headersqueryParams- in case that authentication identifier are used in the query- Returns:
- true if the user / client was successfully be authenticated, false else
- See Also:
-