Class AMAuthUtils
- java.lang.Object
-
- com.sun.identity.console.base.model.AMAuthUtils
-
public class AMAuthUtils extends Object
This class provides authentication related helper methods.
-
-
Constructor Summary
Constructors Constructor Description AMAuthUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetAuthenticatedOrgDN(SSOToken ssoToken)Gets the organization where user authenticated to.static SSOTokengetSSOToken(jakarta.servlet.http.HttpServletRequest req)Returns user's single sign on token.
-
-
-
Field Detail
-
debug
public static Debug debug
-
-
Method Detail
-
getAuthenticatedOrgDN
public static String getAuthenticatedOrgDN(SSOToken ssoToken)
Gets the organization where user authenticated to. This value is found in single-sign on token.- Parameters:
ssoToken- - Single-Sign-On Token return organization where user authenticated.
-
getSSOToken
public static SSOToken getSSOToken(jakarta.servlet.http.HttpServletRequest req) throws SSOException
Returns user's single sign on token.- Parameters:
req- HTTP Servlet request.- Returns:
- single-sign-on token.
- Throws:
SSOException- if single-sign-on token cannot be created
-
-