Class AuthnSvcUtils


  • public class AuthnSvcUtils
    extends Object
    The class AuthnSvcUtils provides some utils for Authentication service related stuff.
    • Field Detail

      • bundle

        public static ResourceBundle bundle
        ResourceBundle object for this service.
      • debug

        public static Debug debug
        Debug object for this service.
    • Constructor Detail

      • AuthnSvcUtils

        public AuthnSvcUtils()
    • 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 response
        message - a SOAP message containing a SASL request
        userDN - Distinguished Name of the User.
        Returns:
        true if it sets correctly