public class BasicAuthHandler extends Object implements org.wso2.charon.core.extensions.AuthenticationHandler
| Constructor and Description |
|---|
BasicAuthHandler() |
| Modifier and Type | Method and Description |
|---|---|
BasicAuthInfo |
decodeBasicAuthHeader(String authorizationHeader) |
org.wso2.charon.core.extensions.AuthenticationInfo |
getAuthenticationInfo()
Once - isAuthenticated method is called on an implementation of this, AuthenticationInfo object
can be created out of the information extracted from the authentication headers passed into the
isAuthenticated method.
|
org.wso2.charon.core.extensions.AuthenticationInfo |
getAuthenticationToken(org.wso2.charon.core.extensions.AuthenticationInfo authInfo) |
String |
getBase64EncodedBasicAuthHeader(String userName,
String password)
Get the Base64 encoded basic auth header.
|
boolean |
isAuthenticated(Map<String,String> authHeaders) |
void |
setCharonManager(org.wso2.charon.core.extensions.CharonManager charonManager)
Pass a handler of Charon Manager - who knows about other extensions such as TenantManager,UserManagers etc,
so that authentication handler can utilize them if needed.
|
public boolean isAuthenticated(Map<String,String> authHeaders) throws org.wso2.charon.core.exceptions.CharonException
isAuthenticated in interface org.wso2.charon.core.extensions.AuthenticationHandlerorg.wso2.charon.core.exceptions.CharonExceptionpublic org.wso2.charon.core.extensions.AuthenticationInfo getAuthenticationToken(org.wso2.charon.core.extensions.AuthenticationInfo authInfo)
getAuthenticationToken in interface org.wso2.charon.core.extensions.AuthenticationHandlerpublic String getBase64EncodedBasicAuthHeader(String userName, String password)
userName - password - public BasicAuthInfo decodeBasicAuthHeader(String authorizationHeader)
public void setCharonManager(org.wso2.charon.core.extensions.CharonManager charonManager)
setCharonManager in interface org.wso2.charon.core.extensions.AuthenticationHandlercharonManager - public org.wso2.charon.core.extensions.AuthenticationInfo getAuthenticationInfo()
getAuthenticationInfo in interface org.wso2.charon.core.extensions.AuthenticationHandlerCopyright © 2018 WSO2. All rights reserved.