Class AnyAuthManager
java.lang.Object
eu.c6.gibraltar.api.common.AbstractManager
eu.c6.gibraltar.api.managers.auth.AnyAuthManager
The Class AnyAuthManager to request or validate a ticket
Users are identified by their login.
-
Field Summary
Fields inherited from class eu.c6.gibraltar.api.common.AbstractManager
APPLICATION_XLS, APPLICATION_XLS_TYPE, APPLICATION_XLSX, APPLICATION_XLSX_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionAnyAuthManager(AnySession anySession) Instantiates a new Any auth manager from user session. -
Method Summary
-
Constructor Details
-
AnyAuthManager
Instantiates a new Any auth manager from user session.- Parameters:
anySession- the Any session
-
-
Method Details
-
getTicket
Requests a ticket- Parameters:
login-- Returns:
- string ticket to use for API valid one time for 30 minutes
- Throws:
Exception
-
isTicketValid
Validate a ticket- Parameters:
login-ticket-- Returns:
- boolean if ticket is still valid or not
- Throws:
Exception
-
assume
Get access token to assume another user login- Parameters:
assumed_login-- Returns:
- IC object with "access_token", "token_type" and "expiration_epoch"
- Throws:
Exception
-