public class UsernameTokenValidator extends Object implements org.apache.ws.security.validate.Validator
Constructor and Description |
---|
UsernameTokenValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(String username,
String password,
String tenantDomain)
This method authenticate the user checking the carbon default user store.
|
org.apache.ws.security.validate.Credential |
validate(org.apache.ws.security.validate.Credential credential,
org.apache.ws.security.handler.RequestData requestData)
This method validates the username token in SOAP message coming from the device.
|
public org.apache.ws.security.validate.Credential validate(org.apache.ws.security.validate.Credential credential, org.apache.ws.security.handler.RequestData requestData) throws org.apache.ws.security.WSSecurityException
validate
in interface org.apache.ws.security.validate.Validator
credential
- - Username token credentials coming from devicerequestData
- - Request data associated with the requestorg.apache.ws.security.WSSecurityException
public boolean authenticate(String username, String password, String tenantDomain) throws AuthenticationException
username
- - Username in username tokenpassword
- - Password in username tokentenantDomain
- - Tenant domain is extracted from the usernameAuthenticationException
Copyright © 2017 WSO2. All rights reserved.