Modifier and Type | Method and Description |
---|---|
UserDetails |
attributes(List attributeNames,
Token subject,
boolean refresh)
Retrieve user details (roles, attributes) for the subject.
|
String |
getCookieNameForToken()
Returns the cookie used by OpenAM Authentication module to store the
SSOToken.
|
List |
getCookieNamesToForward()
Returns a list of cookie names that are used by OpenAM for
authentication and load balancing.
|
void |
log(Token app,
Token subject,
String logName,
String message)
Logs a message on behalf of the authenticated app.
|
IdentityDetails |
read(String name,
List attributes,
Token admin)
Retrieves an identity object matching input criteria.
|
UserDetails attributes(List attributeNames, Token subject, boolean refresh) throws TokenExpired, GeneralFailure, AccessDenied
attributeNames
- Optional list of attributes to be returned.subject
- Token for subject.TokenExpired
- When Token has expired.GeneralFailure
- On other errors.AccessDenied
- If reading of attributes for the user is
disallowed.void log(Token app, Token subject, String logName, String message) throws AccessDenied, TokenExpired, GeneralFailure
app
- Token corresponding to the authenticated application.subject
- Optional token identifying the subject for which the log
record pertains.logName
- Identifier for the log file, e.g. "MyApp.access".message
- String containing the message to be logged.AccessDenied
- If app token is not specified.GeneralFailure
- On error.TokenExpired
IdentityDetails read(String name, List attributes, Token admin) throws NeedMoreCredentials, ObjectNotFound, TokenExpired, GeneralFailure, AccessDenied
name
- The name of identity to retrieve.attributes
- Attribute objects specifying criteria for the object
to retrieve.admin
- Token identifying the administrator to be used to authorize
the request.NeedMoreCredentials
- When more credentials are required for
authorization.ObjectNotFound
- If no subject is found that matches the input
criteria.TokenExpired
- When subject's token has expired.GeneralFailure
- On other errors.AccessDenied
- If reading of attributes for the user is
disallowed.String getCookieNameForToken() throws GeneralFailure
GeneralFailure
- On other errors.List getCookieNamesToForward() throws GeneralFailure
true
If token is valid.GeneralFailure
- On other errors.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.