/forgerock/openam-v13/openam-core-rest/src/main/java/org/forgerock/openam/core/rest/session/query/ |
H A D | SessionQueryType.java | 19 import com.iplanet.dpro.session.share.SessionInfo; 36 public Collection<SessionInfo> getAllSessions();
|
H A D | SessionQueryManager.java | 19 import com.iplanet.dpro.session.share.SessionInfo; 62 public Collection<SessionInfo> getAllSessions(Collection<String> serverIds) { 65 List<SessionInfo> sessions = new LinkedList<SessionInfo>(); 70 Collection<SessionInfo> queriedSessions = queryType.getAllSessions();
|
/forgerock/openam/openam-core-rest/src/main/java/org/forgerock/openam/core/rest/session/query/ |
H A D | SessionQueryType.java | 19 import com.iplanet.dpro.session.share.SessionInfo; 36 public Collection<SessionInfo> getAllSessions();
|
H A D | SessionQueryManager.java | 19 import com.iplanet.dpro.session.share.SessionInfo; 62 public Collection<SessionInfo> getAllSessions(Collection<String> serverIds) { 65 List<SessionInfo> sessions = new LinkedList<SessionInfo>(); 70 Collection<SessionInfo> queriedSessions = queryType.getAllSessions();
|
/forgerock/openam-v13/openam-core/src/test/java/com/iplanet/dpro/session/share/ |
H A D | SessionInfoTest.java | 28 SessionInfo info = new SessionInfo(); 40 SessionInfo info = new SessionInfo();
|
/forgerock/openam/openam-core/src/test/java/com/iplanet/dpro/session/share/ |
H A D | SessionInfoTest.java | 30 SessionInfo info = new SessionInfo(); 42 SessionInfo info = new SessionInfo();
|
/forgerock/openam-v13/openam-core/src/main/java/org/forgerock/openam/session/stateless/cache/ |
H A D | StatelessJWTCache.java | 30 import com.iplanet.dpro.session.share.SessionInfo; 34 * Responsible for providing a caching layer for JWT/SessionInfo conversion. 39 * This cache is intentionally unable to perform the reverse lookup of SessionInfo to 40 * JWT, as we expect the JWT to change each time the SessionInfo changes. 42 * Assumption: There is only one representation of a JWT to the SessionInfo it contains. 48 private final Map<String, SessionInfo> sessionInfoCache; 53 new LeastRecentlyUsed<String, SessionInfo>(config.getJWTCacheSize())); 66 * Stores the relationship between a SessionInfo, and its encrypted JWT. 69 * @param info Non null SessionInfo to store against the JWT. 71 public void cache(SessionInfo inf [all...] |
/forgerock/openam/openam-core/src/main/java/org/forgerock/openam/session/stateless/cache/ |
H A D | StatelessJWTCache.java | 30 import com.iplanet.dpro.session.share.SessionInfo; 34 * Responsible for providing a caching layer for JWT/SessionInfo conversion. 39 * This cache is intentionally unable to perform the reverse lookup of SessionInfo to 40 * JWT, as we expect the JWT to change each time the SessionInfo changes. 42 * Assumption: There is only one representation of a JWT to the SessionInfo it contains. 48 private final Map<String, SessionInfo> sessionInfoCache; 53 new LeastRecentlyUsed<String, SessionInfo>(config.getJWTCacheSize())); 66 * Stores the relationship between a SessionInfo, and its encrypted JWT. 69 * @param info Non null SessionInfo to store against the JWT. 71 public void cache(SessionInfo inf [all...] |
/forgerock/openam-v13/openam-core/src/main/java/com/iplanet/dpro/session/operations/ |
H A D | SessionOperations.java | 20 import com.iplanet.dpro.session.share.SessionInfo; 51 public SessionInfo refresh(Session session, boolean reset) throws SessionException;
|
/forgerock/openam-v13/openam-core/src/test/java/org/forgerock/openam/sso/providers/stateless/ |
H A D | JwtSessionMapperTest.java | 20 import com.iplanet.dpro.session.share.SessionInfo; 41 SessionInfo inputSessionInfo = newExampleSessionInfo(); 46 SessionInfo outputSessionInfo = jwtSessionMapper.fromJson(jsonString); 55 SessionInfo inputSessionInfo = newExampleSessionInfo(); 60 SessionInfo outputSessionInfo = jwtSessionMapper.fromJwt(jwtString); 69 SessionInfo inputSessionInfo = newExampleSessionInfo(); 74 SessionInfo outputSessionInfo = jwtSessionMapper.fromJwt(jwtString); 83 SessionInfo inputSessionInfo = newExampleSessionInfo(); 90 SessionInfo outputSessionInfo = jwtSessionMapper.fromJwt(jwtString); 99 SessionInfo inputSessionInf [all...] |
/forgerock/openam-v13/openam-core/src/test/java/org/forgerock/openam/session/stateless/cache/ |
H A D | StatelessJWTCacheTest.java | 33 import com.iplanet.dpro.session.share.SessionInfo; 80 assertThat(cache.contains((SessionInfo)null)).isFalse(); 89 SessionInfo mockInfo = mock(SessionInfo.class); 103 cache.cache(mock(SessionInfo.class), key); 114 SessionInfo mockSessionInfo = mock(SessionInfo.class); 136 SessionInfo mockSessionInfo = mock(SessionInfo.class);
|
/forgerock/openam/openam-core/src/test/java/org/forgerock/openam/session/stateless/cache/ |
H A D | StatelessJWTCacheTest.java | 33 import com.iplanet.dpro.session.share.SessionInfo; 80 assertThat(cache.contains((SessionInfo)null)).isFalse(); 89 SessionInfo mockInfo = mock(SessionInfo.class); 103 cache.cache(mock(SessionInfo.class), key); 114 SessionInfo mockSessionInfo = mock(SessionInfo.class); 136 SessionInfo mockSessionInfo = mock(SessionInfo.class);
|
/forgerock/openam-v13/openam-core-rest/src/test/java/org/forgerock/openam/core/rest/session/query/ |
H A D | SessionQueryManagerTest.java | 19 import com.iplanet.dpro.session.share.SessionInfo; 88 SessionInfo one = mock(SessionInfo.class); 89 SessionInfo two = mock(SessionInfo.class); 92 given(typeOne.getAllSessions()).willReturn(Arrays.asList(new SessionInfo[]{one})); 94 given(typeTwo.getAllSessions()).willReturn(Arrays.asList(new SessionInfo[]{two})); 103 Collection<SessionInfo> sessions = manager.getAllSessions(Arrays.asList(new String[]{badger, weasel}));
|
/forgerock/openam/openam-core-rest/src/test/java/org/forgerock/openam/core/rest/session/query/ |
H A D | SessionQueryManagerTest.java | 19 import com.iplanet.dpro.session.share.SessionInfo; 88 SessionInfo one = mock(SessionInfo.class); 89 SessionInfo two = mock(SessionInfo.class); 92 given(typeOne.getAllSessions()).willReturn(Arrays.asList(new SessionInfo[]{one})); 94 given(typeTwo.getAllSessions()).willReturn(Arrays.asList(new SessionInfo[]{two})); 103 Collection<SessionInfo> sessions = manager.getAllSessions(Arrays.asList(new String[]{badger, weasel}));
|
/forgerock/openam-v13/openam-core/src/main/java/com/iplanet/dpro/session/share/ |
H A D | SessionNotification.java | 77 private SessionInfo sessionInfo = null; 97 public SessionNotification(SessionInfo info, int type, long time) { 164 void setSessionInfo(SessionInfo info) { 173 public SessionInfo getSessionInfo() {
|
/forgerock/openam-v13/openam-core/src/main/java/com/iplanet/dpro/session/utils/ |
H A D | SessionInfoFactory.java | 26 import com.iplanet.dpro.session.share.SessionInfo; 41 * Generates a SessionInfo which is a summary state of the Session used to 46 * @return Non null SessionInfo. 50 public SessionInfo getSessionInfo(InternalSession internalSession, SessionID sessionID) throws SessionException { 90 * Generates a SessionInfo object from the given InternalSession. 94 * @return A non null SessionInfo instance if valid. 96 * @throws SessionException If there was an error storing the TokenRestriction on the SessionInfo. 101 public SessionInfo makeSessionInfo(InternalSession internalSession, SessionID sid) 103 SessionInfo info = internalSession.toSessionInfo();
|
/forgerock/openam/openam-core/src/main/java/com/iplanet/dpro/session/operations/ |
H A D | SessionOperations.java | 27 import com.iplanet.dpro.session.share.SessionInfo; 60 SessionInfo refresh(Session session, boolean reset) throws SessionException; 92 SessionInfo getSessionInfo(SessionID sessionId, boolean reset) throws SessionException; 167 SearchResults<SessionInfo> getValidSessions(Session session, String pattern) throws SessionException;
|
/forgerock/openam/openam-core/src/main/java/com/iplanet/dpro/session/share/ |
H A D | SessionNotification.java | 77 private SessionInfo sessionInfo = null; 97 public SessionNotification(SessionInfo info, int type, long time) { 164 void setSessionInfo(SessionInfo info) { 173 public SessionInfo getSessionInfo() {
|
/forgerock/openam/openam-core/src/main/java/com/iplanet/dpro/session/utils/ |
H A D | SessionInfoFactory.java | 30 import com.iplanet.dpro.session.share.SessionInfo; 43 * Generates a SessionInfo which is a summary state of the Session used to 48 * @return Non null SessionInfo. 52 public SessionInfo getSessionInfo(InternalSession internalSession, SessionID sessionID) throws SessionException { 92 * Generates a SessionInfo object from the given InternalSession. 96 * @return A non null SessionInfo instance if valid. 98 * @throws SessionException If there was an error storing the TokenRestriction on the SessionInfo. 103 public SessionInfo makeSessionInfo(InternalSession internalSession, SessionID sid) 105 SessionInfo info = internalSession.toSessionInfo();
|
/forgerock/openam/openam-core/src/test/java/org/forgerock/openam/sso/providers/stateless/ |
H A D | JwtSessionMapperTest.java | 36 import com.iplanet.dpro.session.share.SessionInfo; 55 SessionInfo inputSessionInfo = newExampleSessionInfo(); 60 SessionInfo outputSessionInfo = jwtSessionMapper.fromJwt(jwtString); 69 SessionInfo inputSessionInfo = newExampleSessionInfo(); 76 SessionInfo outputSessionInfo = jwtSessionMapper.fromJwt(jwtString); 86 SessionInfo inputSessionInfo = newExampleSessionInfo(); 106 SessionInfo outputSessionInfo = builder.build().fromJwt(jwtString); 128 SessionInfo inputSessionInfo = newExampleSessionInfo(); 147 SessionInfo inputSessionInfo = newExampleSessionInfo(); 189 private SessionInfo newExampleSessionInf [all...] |
/forgerock/openam-v13/openam-core/src/test/java/com/iplanet/dpro/session/operations/strategies/ |
H A D | StatelessOperationsTest.java | 33 import com.iplanet.dpro.session.share.SessionInfo; 79 SessionInfo info = new SessionInfo(); 84 SessionInfo result = statelessOperations.refresh(mockSession, false); 94 SessionInfo info = new SessionInfo(); 98 SessionInfo result = statelessOperations.refresh(mockSession, false);
|
H A D | RemoteOperationsTest.java | 22 import com.iplanet.dpro.session.share.SessionInfo; 71 SessionInfo mockSessionInfo = mock(SessionInfo.class); 75 SessionInfo result = remoteOperations.refresh(mockSession, true); 99 mock(SessionInfo.class), 100 mock(SessionInfo.class)));
|
/forgerock/openam/openam-core/src/main/java/org/forgerock/openam/sso/providers/stateless/ |
H A D | StatelessSessionManager.java | 31 import com.iplanet.dpro.session.share.SessionInfo; 35 * Responsible for creating StatelessSession and SessionInfo instances from JWT 105 * Side Effect: calls #getSessionInfo which may cache the JWT/SessionInfo. 116 * Will create the SessionInfo from the JWT contained within the 119 * Side Effect: Will cache the generated JWT and SessionInfo combination. 123 * @return SessionInfo Non null SessionInfo which corresponds to the SessionID. 125 * @throws SessionException If there was any problem with getting the SessionInfo 128 public SessionInfo getSessionInfo(SessionID sessionID) throws SessionException { 135 SessionInfo sessionInf [all...] |
/forgerock/openam-v13/openam-core/src/main/java/org/forgerock/openam/sso/providers/stateless/ |
H A D | JwtSessionMapper.java | 38 import com.iplanet.dpro.session.share.SessionInfo; 41 * Responsible for converting {@link SessionInfo} objects to/from JWT with optional signing &/or encryption. 82 * Store the SessionInfo as a serialized_session claim in a JWT. 86 * @param sessionInfo Non-null, SessionInfo state to be stored in the returned JWT. 88 * @return String JWT with SessionInfo stored in serialized_session claim. 90 public String asJwt(@Nonnull SessionInfo sessionInfo) { 119 * Extract the SessionInfo stored in the provided JWT's serialized_session claim. 121 * @param jwtString Non-null, String which represents a JWT with SessionInfo state assigned to a serialized_session claim. 123 * @return SessionInfo A correctly parsed SessionInfo fo [all...] |
H A D | StatelessSessionFactory.java | 32 import com.iplanet.dpro.session.share.SessionInfo; 36 * Responsible for creating StatelessSession and SessionInfo instances from JWT 106 * Side Effect: calls #getSessionInfo which may cache the JWT/SessionInfo. 117 * Will create the SessionInfo from the JWT contained within the 120 * Side Effect: Will cache the generated JWT and SessionInfo combination. 124 * @return SessionInfo Non null SessionInfo which corresponds to the SessionID. 126 * @throws SessionException If there was any problem with getting the SessionInfo 129 public SessionInfo getSessionInfo(SessionID sessionID) throws SessionException { 135 SessionInfo sessionInf [all...] |