Package com.caplin.motif.datasource
Class TokenisedSubjectUtil
java.lang.Object
com.caplin.motif.datasource.TokenisedSubjectUtil
Util to retrieve values from a given subject defined by the namespace and tokens that the namespace.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getUsername
(String subject, String... nameSpaces) Retrieve username from subject based on nameSpace location.static String
getVariable
(String subject, String variableToken, String... nameSpaces) Retrieve value from subject for the token defined in namespaces given.static boolean
-
Constructor Details
-
TokenisedSubjectUtil
public TokenisedSubjectUtil()
-
-
Method Details
-
isValid
-
getUsername
Retrieve username from subject based on nameSpace location.- Parameters:
subject
- contains subject to obtain usernamenameSpaces
- contains String for nameSpace location- Returns:
- username or null.
-
getVariable
Retrieve value from subject for the token defined in namespaces given.- Parameters:
subject
- String for subject to returnvariableToken
- contains value for defined tokennameSpaces
- contains the String for nameSpaces- Returns:
- value defined by token or null.clear
-