public class DefaultCharonManager extends Object implements org.wso2.charon.core.extensions.CharonManager
| Modifier and Type | Method and Description |
|---|---|
org.wso2.charon.core.extensions.AuthenticationHandler |
getAuthenticationHandler(String authMechanism)
Obtain the authentication handler, given the authentication mechanism.
|
org.wso2.charon.core.encoder.Decoder |
getDecoder(String format)
Obtain the decoder for the given format.
|
org.wso2.charon.core.encoder.Encoder |
getEncoder(String format)
Obtain the encoder for the given format.
|
static DefaultCharonManager |
getInstance()
Should return the static instance of CharonManager implementation.
|
org.wso2.charon.core.extensions.TenantManager |
getTenantManager()
Obtain the the instance of registered tenant manager implementation.
|
org.wso2.charon.core.extensions.UserManager |
getUserManager(String tenantAdminUserName)
Obtain the user manager, after identifying the tenantId of the tenantAdminUser
who invokes the SCIM API exposed by the service provider.
|
org.wso2.charon.core.extensions.AuthenticationInfo |
handleAuthentication(Map<String,String> httpAuthHeaders) |
String |
identifyAuthMechanism(Map<String,String> authHeaders)
Identify the authentication mechanism, given the http headers sent in the SCIM API access request.
|
boolean |
isAuthenticationSupported(String authmechanism)
Returns true if the registered authenticators support the given authentication mechanism.
|
org.wso2.charon.core.extensions.AuthenticationInfo |
registerTenant(org.wso2.charon.core.extensions.TenantDTO tenantInfo)
Create the tenant in the particular tenant manager, given the tenant info.
|
public static DefaultCharonManager getInstance() throws org.wso2.charon.core.exceptions.CharonException
org.wso2.charon.core.exceptions.CharonExceptionpublic org.wso2.charon.core.encoder.Encoder getEncoder(String format) throws org.wso2.charon.core.exceptions.FormatNotSupportedException
getEncoder in interface org.wso2.charon.core.extensions.CharonManagerorg.wso2.charon.core.exceptions.FormatNotSupportedExceptionpublic org.wso2.charon.core.encoder.Decoder getDecoder(String format) throws org.wso2.charon.core.exceptions.FormatNotSupportedException
getDecoder in interface org.wso2.charon.core.extensions.CharonManagerorg.wso2.charon.core.exceptions.FormatNotSupportedExceptionpublic org.wso2.charon.core.extensions.AuthenticationHandler getAuthenticationHandler(String authMechanism) throws org.wso2.charon.core.exceptions.CharonException
getAuthenticationHandler in interface org.wso2.charon.core.extensions.CharonManagerorg.wso2.charon.core.exceptions.CharonExceptionpublic org.wso2.charon.core.extensions.UserManager getUserManager(String tenantAdminUserName) throws org.wso2.charon.core.exceptions.CharonException
getUserManager in interface org.wso2.charon.core.extensions.CharonManagertenantAdminUserName - org.wso2.charon.core.exceptions.CharonExceptionpublic org.wso2.charon.core.extensions.TenantManager getTenantManager()
getTenantManager in interface org.wso2.charon.core.extensions.CharonManagerpublic org.wso2.charon.core.extensions.AuthenticationInfo registerTenant(org.wso2.charon.core.extensions.TenantDTO tenantInfo)
throws org.wso2.charon.core.exceptions.CharonException
registerTenant in interface org.wso2.charon.core.extensions.CharonManagertenantInfo - org.wso2.charon.core.exceptions.CharonExceptionpublic boolean isAuthenticationSupported(String authmechanism)
isAuthenticationSupported in interface org.wso2.charon.core.extensions.CharonManagerauthmechanism - public org.wso2.charon.core.extensions.AuthenticationInfo handleAuthentication(Map<String,String> httpAuthHeaders) throws org.wso2.charon.core.exceptions.UnauthorizedException
handleAuthentication in interface org.wso2.charon.core.extensions.CharonManagerorg.wso2.charon.core.exceptions.UnauthorizedExceptionpublic String identifyAuthMechanism(Map<String,String> authHeaders) throws org.wso2.charon.core.exceptions.CharonException
authHeaders - org.wso2.charon.core.exceptions.CharonExceptionCopyright © 2018 WSO2. All rights reserved.