Package com.sun.identity.session.util
Class SessionUtilsWrapper
- java.lang.Object
-
- com.sun.identity.session.util.SessionUtilsWrapper
-
public class SessionUtilsWrapper extends Object
Wrapper object forSessionUtilsto avoid calls to static methods.
-
-
Constructor Summary
Constructors Constructor Description SessionUtilsWrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckPermissionToSetProperty(SSOToken clientToken, String key, String value)Helper method to check if owner ofclientTokenhas permission to protected session properties.
-
-
-
Method Detail
-
checkPermissionToSetProperty
public void checkPermissionToSetProperty(SSOToken clientToken, String key, String value) throws SessionException
Helper method to check if owner ofclientTokenhas permission to protected session properties.In order for this operation to be permitted,
clientTokenmust be a validSSOTokenbelonging to an administrator.Alternatively, if
keyis 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 andclientTokenis not a valid adminSSOToken.
-
-