Lines Matching refs:restriction
895 TokenRestriction restriction = entry.getValue();
896 this.restrictedTokensBySid.put(sid, restriction);
897 this.restrictedTokensByRestriction.put(restriction, sid);
953 * @param restriction The token restriction.
956 public SessionID addRestrictedToken(SessionID newRestrictedTokenId, TokenRestriction restriction) {
957 SessionID currentRestrictedTokenId = restrictedTokensByRestriction.putIfAbsent(restriction, newRestrictedTokenId);
959 restrictedTokensBySid.put(newRestrictedTokenId, restriction);
970 * @return Null indicates there is no restriction on the Session.
977 * Returns the SessionID of the restricted token for the provided restriction for this session.
979 * @param restriction restriction used to look up restricted token.
982 public SessionID getRestrictedTokenForRestriction(TokenRestriction restriction) {
983 return restrictedTokensByRestriction.get(restriction);