Searched refs:restriction (Results 1 - 25 of 30) sorted by relevance

12

/forgerock/openam-v13/openam-core/src/test/java/org/forgerock/openam/sso/providers/stateless/
H A DStatelessAdminRestrictionTest.java38 private StatelessAdminRestriction restriction; field in class:StatelessAdminRestrictionTest
44 restriction = new StatelessAdminRestriction(mockDelegate, mockFactory);
49 restriction.isRestricted((SSOToken)null);
54 restriction.isRestricted((String)null);
65 restriction.isRestricted(token);
77 restriction.isRestricted(token);
92 boolean result = restriction.isRestricted(token);
/forgerock/openam/openam-core/src/test/java/org/forgerock/openam/sso/providers/stateless/
H A DStatelessAdminRestrictionTest.java38 private StatelessAdminRestriction restriction; field in class:StatelessAdminRestrictionTest
44 restriction = new StatelessAdminRestriction(mockDelegate, mockFactory);
49 restriction.isRestricted((SSOToken)null);
54 restriction.isRestricted((String)null);
65 restriction.isRestricted(token);
77 restriction.isRestricted(token);
92 boolean result = restriction.isRestricted(token);
/forgerock/openam-v13/openam-core/src/main/java/com/iplanet/dpro/session/utils/
H A DSessionInfoFactory.java104 TokenRestriction restriction = internalSession.getRestrictionForToken(sid);
105 if (restriction != null) {
108 TokenRestrictionFactory.marshal(restriction));
/forgerock/openam/openam-core/src/main/java/com/iplanet/dpro/session/utils/
H A DSessionInfoFactory.java106 TokenRestriction restriction = internalSession.getRestrictionForToken(sid);
107 if (restriction != null) {
110 TokenRestrictionFactory.marshal(restriction));
/forgerock/openam-v13/openam-core/src/main/java/org/forgerock/openam/sso/providers/stateless/
H A DStatelessSSOProvider.java40 private final StatelessAdminRestriction restriction; field in class:StatelessSSOProvider
49 StatelessAdminRestriction restriction,
53 this.restriction = restriction;
138 if (restriction.isRestricted(token)) {
47 StatelessSSOProvider(StatelessSessionFactory statelessSessionFactory, SessionBlacklist sessionBlacklist, StatelessAdminRestriction restriction, @Named(SessionConstants.SESSION_DEBUG) Debug debug) argument
H A DStatelessSession.java58 protected void setRestriction(TokenRestriction restriction) { argument
/forgerock/openam/openam-core/src/main/java/org/forgerock/openam/sso/providers/stateless/
H A DStatelessSSOProvider.java61 private final StatelessAdminRestriction restriction; field in class:StatelessSSOProvider
71 StatelessAdminRestriction restriction,
75 this.restriction = restriction;
182 if (restriction.isRestricted(token)) {
69 StatelessSSOProvider(StatelessSessionManager statelessSessionManager, Blacklist<Session> sessionBlacklist, StatelessAdminRestriction restriction, @Named(SessionConstants.SESSION_DEBUG) Debug debug) argument
H A DStatelessSession.java76 protected void setRestriction(TokenRestriction restriction) { argument
/forgerock/openam/openam-core/src/main/java/com/iplanet/dpro/session/operations/strategies/
H A DLocalOperations.java247 TokenRestriction restriction = session.getRestrictionForToken(token);
248 if (restriction != null && !restriction.isSatisfied(RestrictedTokenContext.getCurrent())) {
264 * @param restriction TokenRestriction Object
269 final TokenRestriction restriction) throws SessionException {
277 // attempt to reuse the token if restriction is the same
278 SessionID restrictedSessionID = session.getRestrictedTokenForRestriction(restriction);
281 restrictedSessionID = session.addRestrictedToken(generatedRestrictedSessionID, restriction);
305 //if the provided session ID was a restricted token, resolveToken will always validate the restriction, so there is no
268 getRestrictedTokenId(final SessionID masterSessionId, final TokenRestriction restriction) argument
H A DClientSdkOperations.java212 public String getRestrictedTokenId(SessionID masterSid, TokenRestriction restriction) throws SessionException { argument
/forgerock/openam/openam-core/src/main/java/com/iplanet/dpro/session/monitoring/
H A DMonitoredOperations.java135 public String getRestrictedTokenId(SessionID masterSid, TokenRestriction restriction) throws SessionException { argument
136 return sessionOperations.getRestrictedTokenId(masterSid, restriction); // Not monitored at present
/forgerock/openam/openam-core/src/main/java/com/iplanet/dpro/session/service/
H A DInternalSession.java895 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) { argument
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 fo
982 getRestrictedTokenForRestriction(TokenRestriction restriction) argument
[all...]
H A DSessionService.java106 * @param restriction TokenRestriction Object
110 public String getRestrictedTokenId(String masterSid, TokenRestriction restriction) throws SessionException { argument
112 return sessionOperationStrategy.getOperation(sessionID).getRestrictedTokenId(sessionID, restriction);
/forgerock/openam/openam-core/src/main/java/com/iplanet/dpro/session/operations/
H A DSessionOperations.java113 * @param restriction the Token Restriction type to use
117 String getRestrictedTokenId(SessionID masterSessionId, TokenRestriction restriction) throws SessionException; argument
/forgerock/openam-v13/openam-core/src/main/java/org/forgerock/openam/session/
H A DSessionCache.java270 TokenRestriction restriction = session.getRestriction();
276 * from this agent token id. Now, the restriction context
283 if ((restriction != null) && !restriction.isSatisfied(RestrictedTokenContext.getCurrent())) {
/forgerock/openam/openam-core/src/main/java/org/forgerock/openam/session/
H A DSessionCache.java230 TokenRestriction restriction = session.getRestriction();
236 * from this agent token id. Now, the restriction context
243 if ((restriction != null) && !restriction.isSatisfied(RestrictedTokenContext.getCurrent())) {
/forgerock/openam/openam-core/src/test/java/org/forgerock/openam/cts/utils/
H A DJSONSerialisationIntegrationTest.java68 InternalSession is = serialization.deserialise(getJSON("/json/basic-session-with-restriction.json"),
71 TokenRestriction restriction = is.getRestrictionForToken(new SessionID("AQIC5wM2LY4SfcyTLz6VjQ7nkFeDcEh8K5dXkIE"
73 assertThat(restriction).isNotNull().isInstanceOf(DNOrIPAddressListTokenRestriction.class);
74 assertThat(restriction.toString().equals("Fzy2GsI/O1TsXhvlVuqjqIuTG2k="));
81 {"/json/complex-session-with-restriction-v11.json"},
82 {"/json/complex-session-with-restriction-v12.json"}
/forgerock/openam/openam-core/src/main/java/com/iplanet/dpro/session/
H A DSession.java198 private TokenRestriction restriction = null; field in class:Session
490 return restriction != null;
819 * Sets a token restriction on this session. Optional operation - specific sub-classes can throw an exception if
822 * @param restriction the restriction to apply to this session.
825 protected void setRestriction(TokenRestriction restriction) { argument
826 this.restriction = restriction;
929 return restriction;
/forgerock/openam-v13/openam-core/src/test/java/org/forgerock/openam/cts/utils/
H A DJSONSerialisationTest.java122 InternalSession is = serialization.deserialise(getJSON("/json/basic-session-with-restriction.json"),
125 TokenRestriction restriction = is.getRestrictionForToken(new SessionID("AQIC5wM2LY4SfcyTLz6VjQ7nkFeDcEh8K5dXkIE"
127 assertThat(restriction).isNotNull().isInstanceOf(DNOrIPAddressListTokenRestriction.class);
128 assertThat(restriction.toString().equals("Fzy2GsI/O1TsXhvlVuqjqIuTG2k="));
135 {"/json/complex-session-with-restriction-v11.json"},
136 {"/json/complex-session-with-restriction-v12.json"}
/forgerock/openam-v13/openam-core/src/main/java/com/iplanet/dpro/session/service/
H A DInternalSession.java1436 TokenRestriction restriction = entry.getValue();
1437 this.restrictedTokensBySid.put(sid, restriction);
1438 this.restrictedTokensByRestriction.put(restriction, sid);
1489 * @param restriction The token restriction.
1493 SessionID addRestrictedToken(SessionID sid, TokenRestriction restriction) { argument
1494 SessionID previousValue = restrictedTokensByRestriction.putIfAbsent(restriction, sid);
1496 restrictedTokensBySid.put(sid, restriction);
1507 * @return Null indicates there is no restriction on the Session.
1513 SessionID getRestrictedTokenForRestriction(TokenRestriction restriction) { argument
[all...]
H A DSessionService.java387 * @param restriction TokenRestriction Object
392 public String getRestrictedTokenId(String masterSid, TokenRestriction restriction) throws SessionException { argument
406 sessionServiceURLService.getSessionServiceURL(hostServerID), sid, restriction);
416 return doGetRestrictedTokenId(sid, restriction);
422 String doGetRestrictedTokenId(SessionID masterSid, TokenRestriction restriction) throws SessionException { argument
437 // attempt to reuse the token if restriction is the same
438 SessionID restrictedSid = session.getRestrictedTokenForRestriction(restriction);
441 SessionID previousValue = session.addRestrictedToken(restrictedSid, restriction);
619 TokenRestriction restriction = session.getRestrictionForToken(token);
620 if (restriction !
1769 getRestrictedTokenIdRemotely(URL owner, SessionID masterSid, TokenRestriction restriction) argument
1826 handleGetRestrictedTokenIdRemotely(SessionID masterSid, TokenRestriction restriction) argument
[all...]
H A DGetHttpSession.java253 TokenRestriction restriction = TokenRestrictionFactory
255 String token = sessionService.handleGetRestrictedTokenIdRemotely(sid, restriction);
/forgerock/openam-v13/openam-oauth2-saml2/src/main/java/org/forgerock/openam/oauth2/saml2/core/
H A DSaml2GrantTypeHandler.java199 for (final AudienceRestriction restriction : audienceRestriction) {
200 final List<String> audiences = restriction.getAudience();
/forgerock/openam-v13/openam-core/src/main/java/com/iplanet/dpro/session/
H A DSession.java237 private TokenRestriction restriction = null; field in class:Session
1126 * Sets a token restriction on this session. Optional operation - specific sub-classes can throw an exception if
1129 * @param restriction the restriction to apply to this session.
1132 protected void setRestriction(TokenRestriction restriction) { argument
1133 this.restriction = restriction;
1332 return restriction;
/forgerock/openam/openam-oauth2-saml2/src/main/java/org/forgerock/openam/oauth2/saml2/core/
H A DSaml2GrantTypeHandler.java218 for (final AudienceRestriction restriction : audienceRestriction) {
219 final List<String> audiences = restriction.getAudience();

Completed in 128 milliseconds

12