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 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[] |
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 - Copyright © 2016 WSO2. All rights reserved.