Class StaticIdentityValidator
- java.lang.Object
-
- io.apiman.gateway.engine.policies.auth.StaticIdentityValidator
-
- All Implemented Interfaces:
IIdentityValidator<StaticIdentitySource>
public class StaticIdentityValidator extends Object implements IIdentityValidator<StaticIdentitySource>
An identity validator that uses the static information in the config to validate the user.- Author:
- eric.wittmann@redhat.com
-
-
Constructor Summary
Constructors Constructor Description StaticIdentityValidator()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate(String username, String password, ApiRequest request, IPolicyContext context, StaticIdentitySource config, IAsyncResultHandler<Boolean> handler)Asynchronously validates a user.
-
-
-
Method Detail
-
validate
public void validate(String username, String password, ApiRequest request, IPolicyContext context, StaticIdentitySource config, IAsyncResultHandler<Boolean> handler)
Description copied from interface:IIdentityValidatorAsynchronously validates a user.- Specified by:
validatein interfaceIIdentityValidator<StaticIdentitySource>- Parameters:
username- the usernamepassword- the passwordrequest- the API requestcontext- the policy contextconfig- the confighandler- the result handler- See Also:
IIdentityValidator.validate(java.lang.String, java.lang.String, io.apiman.gateway.engine.beans.ApiRequest, io.apiman.gateway.engine.policy.IPolicyContext, java.lang.Object, io.apiman.gateway.engine.async.IAsyncResultHandler)
-
-