public interface AuthorizationResponse
Modifier and Type | Interface and Description |
---|---|
static class |
AuthorizationResponse.ResponseType |
Modifier and Type | Method and Description |
---|---|
AuthorizationResponse |
addChallenge(java.lang.String securityCheckName,
java.util.Map challenge)
Add a challenge.
|
AuthorizationResponse |
addFailure(java.lang.String securityCheckName,
java.util.Map failureData)
Add a failure
|
AuthorizationResponse |
addSuccess(java.util.Set scope,
long expiresAt,
java.lang.String securityCheckName)
Add success scope and its expiration
|
AuthorizationResponse |
addSuccess(java.util.Set scope,
long expiresAt,
java.lang.String securityCheckName,
java.lang.String key,
java.lang.Object value)
Add success scope, its expiration, and a field for the success object that will be delivered to the challenge handler.
|
AuthorizationResponse.ResponseType |
getType()
Get the current type of the response
|
AuthorizationResponse.ResponseType getType()
AuthorizationResponse addSuccess(java.util.Set scope, long expiresAt, java.lang.String securityCheckName)
scope
- the scope granted by the security checkexpiresAt
- expiration of the granted scopesecurityCheckName
- name of the security check for the success data objectAuthorizationResponse addSuccess(java.util.Set scope, long expiresAt, java.lang.String securityCheckName, java.lang.String key, java.lang.Object value)
scope
- the scope granted by the security checkexpiresAt
- expiration of the granted scopesecurityCheckName
- name of the security check for the success data objectkey
- the field name in the success data objectvalue
- the field valueAuthorizationResponse addChallenge(java.lang.String securityCheckName, java.util.Map challenge)
securityCheckName
- the name of the challenging security checkchallenge
- the challenge objectAuthorizationResponse addFailure(java.lang.String securityCheckName, java.util.Map failureData)
securityCheckName
- the name of the failed security checkfailureData
- the failure object
© Copyright IBM Corp. 2006, 2015. All Rights Reserved.