public class AuthnDataPublisherUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
AuthnDataPublisherUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
filterRoles(String[] roleList)
Filter roles so that they don't have Internal roles except Internal/Everyone and all application roles
|
static Object[] |
getMetaDataArray(String tenantDomain)
Get metadata array for different tenants with tenant domain
|
static long |
getSessionExpirationTime(long createdTime,
long updatedTime,
String tenantDomain,
boolean isRememberMe)
Get the expiration time of the session
|
static String |
getSubjectStepIDP(org.wso2.carbon.identity.application.authentication.framework.context.AuthenticationContext context)
Returns the IDP name of IDP which is used to get the subject identifier.
|
static String[] |
getTenantDomains(String spTenantDomain,
String userTenantDomain) |
static String |
hashString(String value)
Hash given string using sha-256
|
static String |
replaceIfNotAvailable(String name,
String value)
Add default values if the values coming in are null or empty
|
public static String replaceIfNotAvailable(String name, String value)
name - Name of the property configured in identity.xmlvalue - In coming valuepublic static long getSessionExpirationTime(long createdTime,
long updatedTime,
String tenantDomain,
boolean isRememberMe)
createdTime - Created time of the sessionupdatedTime - Updated time of the sessiontenantDomain - Tenant DomainisRememberMe - Whether remember me is enabledpublic static String hashString(String value) throws NoSuchAlgorithmException
value - string to be hashedNoSuchAlgorithmExceptionpublic static Object[] getMetaDataArray(String tenantDomain)
tenantDomain - public static String[] getTenantDomains(String spTenantDomain, String userTenantDomain)
public static List<String> filterRoles(String[] roleList)
roleList - All rolespublic static String getSubjectStepIDP(org.wso2.carbon.identity.application.authentication.framework.context.AuthenticationContext context)
context - Authentication context.Copyright © 2016 WSO2. All rights reserved.