Class AuthnSvcUtils
- java.lang.Object
-
- com.sun.identity.liberty.ws.authnsvc.AuthnSvcUtils
-
public class AuthnSvcUtils extends Object
The classAuthnSvcUtilsprovides some utils for Authentication service related stuff.
-
-
Field Summary
Fields Modifier and Type Field Description static ResourceBundlebundleResourceBundleobject for this service.static DebugdebugDebugobject for this service.
-
Constructor Summary
Constructors Constructor Description AuthnSvcUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]decodeDataElement(Element dataE)Decodes the value of a Data Element.static StringgetString(String key)Returns localized string from resource bundle.static booleansetResourceOfferingAndCredentials(SASLResponse saslResp, Message message, String userDN)Sets resource offering and credentials to the SASL response based on provided sso token.
-
-
-
Field Detail
-
bundle
public static ResourceBundle bundle
ResourceBundleobject for this service.
-
debug
public static Debug debug
Debugobject for this service.
-
-
Method Detail
-
getString
public static String getString(String key)
Returns localized string from resource bundle.- Parameters:
key- a key to a resource bundle.- Returns:
- a localized string
-
decodeDataElement
public static byte[] decodeDataElement(Element dataE)
Decodes the value of a Data Element.- Parameters:
dataE- a Data element- Returns:
- a byte array of decoded value
-
setResourceOfferingAndCredentials
public static boolean setResourceOfferingAndCredentials(SASLResponse saslResp, Message message, String userDN)
Sets resource offering and credentials to the SASL response based on provided sso token.- Parameters:
saslResp- a SASL responsemessage- a SOAP message containing a SASL requestuserDN- Distinguished Name of the User.- Returns:
trueif it sets correctly
-
-