Class MockCcureAuth
java.lang.Object
edu.internet2.middleware.grouper.app.ccure.MockCcureAuth
Model object for a CCure mock login session (session-id / token pair returned by
api/Authenticate/Login, validated by api/Authenticate/Logout).
This is persisted (rather than kept in a static field) because the mock service handler is
instantiated fresh per request and Grouper's UI/WS/daemon layers can run as multiple nodes -
a login and its matching logout are not guaranteed to land on the same JVM.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateTableCcureAuth(DdlVersionBean ddlVersionBean, Database database) DDL for the mock table.getId()static MockCcureAuthBuild a new session row with a freshly generated id, session id, and access token.voidsetAccessToken(String accessToken) voidsetCreatedAtMillis(Long createdAtMillis) voidvoidsetSessionId(String sessionId)
-
Constructor Details
-
MockCcureAuth
public MockCcureAuth()
-
-
Method Details
-
getId
-
setId
-
getSessionId
-
setSessionId
-
getAccessToken
-
setAccessToken
-
getCreatedAtMillis
-
setCreatedAtMillis
-
newSession
Build a new session row with a freshly generated id, session id, and access token.- Returns:
- the new (unsaved) auth row
-
createTableCcureAuth
DDL for the mock table.- Parameters:
ddlVersionBean- ddl version beandatabase- database
-