public class AuthnDataPublisherUtils extends Object
| Constructor and Description |
|---|
AuthnDataPublisherUtils() |
| Modifier and Type | Method and Description |
|---|---|
static long |
getSessionExpirationTime(long createdTime,
long updatedTime,
String tenantDomain,
boolean isRememberMe)
Get the expiration time of the session
|
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 hashedNoSuchAlgorithmExceptionCopyright © 2016 WSO2. All rights reserved.