Class SessionUtilsWrapper


  • public class SessionUtilsWrapper
    extends Object
    Wrapper object for SessionUtils to avoid calls to static methods.
    • Constructor Detail

      • SessionUtilsWrapper

        public SessionUtilsWrapper()
    • Method Detail

      • checkPermissionToSetProperty

        public void checkPermissionToSetProperty​(SSOToken clientToken,
                                                 String key,
                                                 String value)
                                          throws SessionException
        Helper method to check if owner of clientToken has permission to protected session properties.

        In order for this operation to be permitted, clientToken must be a valid SSOToken belonging to an administrator.

        Alternatively, if key is not a protected property, then this check passes regardless of what {code clientToken} is provided.

        Parameters:
        clientToken - SSOToken of the client wishing to set a session property.
        key - Name of the property the client wishes to set.
        value - Value of the property the client wishes to set.
        Throws:
        SessionException - if key identifies a protected property and clientToken is not a valid admin SSOToken.