@Immutable public class SelfIssuedAssertionAuthorization extends SubjectAuthorization
grant handler of
self-issued assertions (SAML 2.0 or JWT bearer).
Required authorisation details:
All other parameters are optional or have suitable defaults.
| Constructor and Description |
|---|
SelfIssuedAssertionAuthorization(com.nimbusds.oauth2.sdk.id.ClientID subject,
com.nimbusds.oauth2.sdk.Scope scope)
Creates a new authorisation for a self-issued assertion grant where
the client acts on its own behalf.
|
SelfIssuedAssertionAuthorization(com.nimbusds.oauth2.sdk.id.ClientID subject,
com.nimbusds.oauth2.sdk.Scope scope,
AccessTokenSpec accessTokenSpec,
net.minidev.json.JSONObject data)
Creates a new authorisation for a self-issued assertion grant where
the client acts on its own behalf.
|
SelfIssuedAssertionAuthorization(com.nimbusds.oauth2.sdk.id.Subject subject,
com.nimbusds.oauth2.sdk.Scope scope)
Creates a new authorisation for a self-issued assertion grant where
the client acts on behalf of a user.
|
SelfIssuedAssertionAuthorization(com.nimbusds.oauth2.sdk.id.Subject subject,
com.nimbusds.oauth2.sdk.Scope scope,
AccessTokenSpec accessTokenSpec,
IDTokenSpec idTokenSpec,
ClaimsSpec claimsSpec,
net.minidev.json.JSONObject data)
Creates a new authorisation for a self-issued assertion grant where
the client acts on behalf of a user.
|
| Modifier and Type | Method and Description |
|---|---|
static SelfIssuedAssertionAuthorization |
parse(net.minidev.json.JSONObject jsonObject)
Parses a self-issued assertion grant authorisation from the
specified JSON object.
|
static SelfIssuedAssertionAuthorization |
parse(String json)
Parses a self-issued assertion grant authorisation from the
specified JSON object string.
|
getACR, getAMRList, getAuthTime, getClaimsSpec, getIDTokenSpec, getSubject, toJSONObjectgetAccessTokenSpec, getAudience, getData, getScopepublic SelfIssuedAssertionAuthorization(com.nimbusds.oauth2.sdk.id.Subject subject, com.nimbusds.oauth2.sdk.Scope scope)
See RFC 7521, section 6.3.
subject - The subject (end-user). Must not be null.scope - The authorised scope values. Must not be
null.public SelfIssuedAssertionAuthorization(com.nimbusds.oauth2.sdk.id.Subject subject, com.nimbusds.oauth2.sdk.Scope scope, AccessTokenSpec accessTokenSpec, IDTokenSpec idTokenSpec, ClaimsSpec claimsSpec, net.minidev.json.JSONObject data)
See RFC 7521, section 6.3.
subject - The subject (end-user). Must not be
null.scope - The authorised scope values. Must not be
null.accessTokenSpec - The access token specification. Must not be
null.idTokenSpec - The ID token specification. Must not be
null.claimsSpec - The claims specification. Must not be
null.data - Additional data as a JSON object,
null if not specified.public SelfIssuedAssertionAuthorization(com.nimbusds.oauth2.sdk.id.ClientID subject, com.nimbusds.oauth2.sdk.Scope scope)
See RFC 7521, section 6.2.
subject - The client identifier. Must not be null.scope - The authorised scope values. Must not be
null.public SelfIssuedAssertionAuthorization(com.nimbusds.oauth2.sdk.id.ClientID subject, com.nimbusds.oauth2.sdk.Scope scope, AccessTokenSpec accessTokenSpec, net.minidev.json.JSONObject data)
See RFC 7521, section 6.2.
subject - The client identifier. Must not be
null.scope - The authorised scope values. Must not be
null.accessTokenSpec - The access token specification. Must not be
null.data - Additional data as a JSON object,
null if not specified.public static SelfIssuedAssertionAuthorization parse(net.minidev.json.JSONObject jsonObject) throws com.nimbusds.oauth2.sdk.ParseException
jsonObject - The JSON object to parse. Must not be
null.com.nimbusds.oauth2.sdk.ParseException - If parsing failed.public static SelfIssuedAssertionAuthorization parse(String json) throws com.nimbusds.oauth2.sdk.ParseException
json - The JSON object string to parse. Must not be
null.com.nimbusds.oauth2.sdk.ParseException - If parsing failed.Copyright © 2020 Connect2id Ltd.. All rights reserved.