Class StatelessAdminRestriction


  • public class StatelessAdminRestriction
    extends Object
    Centralised logic to coordinate the decision around Stateless Sessions. In particular it has been decided that administrator users will not use Stateless Sessions.
    • Method Detail

      • isRestricted

        public boolean isRestricted​(SSOToken token)
                             throws SessionException
        Indicates if a given SSOToken should be restricted when used in the context of a Stateless Session.
        Parameters:
        token - Non null SSOToken.
        Returns:
        True if the the SSOToken should be restricted in the context of Stateless Sessions.
        Throws:
        SessionException - If there was an error whilst attempting to verify if the SSOToken represented a Stateless Session then this exception will be thrown.
      • isRestricted

        public boolean isRestricted​(String userDN)
        Indicates if the given User DN should be restricted when used in the context of Stateless Sessions.
        Parameters:
        userDN - Non null user DN.
        Returns:
        True if the userDN should be restricted.
        See Also:
        SSOToken.getPrincipal(), Principal.getName()
      • createAuthDDelegate

        public static StatelessAdminRestriction.SuperUserDelegate createAuthDDelegate()
        Used to generate a singleton SuperUserDelegate whose AuthD instance is lazily loaded and which is used to verify the administrative nature of users passed in.
        Returns:
        A new SuperUserDelegate, ready for use.