com.nimbusds.openid.connect.sdk
Class OIDCScopeToken

java.lang.Object
  extended by com.nimbusds.oauth2.sdk.id.Identifier
      extended by com.nimbusds.oauth2.sdk.ScopeToken
          extended by com.nimbusds.openid.connect.sdk.OIDCScopeToken
All Implemented Interfaces:
net.minidev.json.JSONAware

public class OIDCScopeToken
extends ScopeToken

Standard OpenID Connect scope token.

Version:
$version$ (2013-01-21)
Author:
Vladimir Dzhuvinov

Nested Class Summary
 
Nested classes/interfaces inherited from class com.nimbusds.oauth2.sdk.ScopeToken
ScopeToken.Requirement
 
Field Summary
static OIDCScopeToken ADDRESS
          Requests that access to address claim at the UserInfo endpoint be granted by the issued access token.
static OIDCScopeToken EMAIL
          Requests that access to the email and email_verified claims at the UserInfo endpoint be granted by the issued access token.
static OIDCScopeToken OFFLINE_ACCESS
          Requests that an OAuth 2.0 refresh token be issued that can be used to obtain an access token that grants access the end-user's UserInfo endpoint even when the user is not present (not logged in).
static OIDCScopeToken OPENID
          Informs the authorisation server that the client is making an OpenID Connect request (REQUIRED).
static OIDCScopeToken PHONE
          Requests that access to the phone_number claim at the UserInfo endpoint be granted by the issued access token.
static OIDCScopeToken PROFILE
          Requests that access to the end-user's default profile claims at the UserInfo endpoint be granted by the issued access token.
 
Method Summary
 Set<String> getClaims()
          Returns the names of the associated claims.
 net.minidev.json.JSONObject getClaimsRequestJSONObject()
          Gets a default claims request JSON object for the scope token.
 
Methods inherited from class com.nimbusds.oauth2.sdk.ScopeToken
equals, getRequirement
 
Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
getValue, hashCode, toJSONString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

OPENID

public static final OIDCScopeToken OPENID
Informs the authorisation server that the client is making an OpenID Connect request (REQUIRED). This scope token requests access to the sub claim.


PROFILE

public static final OIDCScopeToken PROFILE
Requests that access to the end-user's default profile claims at the UserInfo endpoint be granted by the issued access token. These claims are: name, family_name, given_name, middle_name, nickname, preferred_username, profile, picture, website, gender, birthdate, zoneinfo, locale, and updated_time.


EMAIL

public static final OIDCScopeToken EMAIL
Requests that access to the email and email_verified claims at the UserInfo endpoint be granted by the issued access token.


ADDRESS

public static final OIDCScopeToken ADDRESS
Requests that access to address claim at the UserInfo endpoint be granted by the issued access token.


PHONE

public static final OIDCScopeToken PHONE
Requests that access to the phone_number claim at the UserInfo endpoint be granted by the issued access token.


OFFLINE_ACCESS

public static final OIDCScopeToken OFFLINE_ACCESS
Requests that an OAuth 2.0 refresh token be issued that can be used to obtain an access token that grants access the end-user's UserInfo endpoint even when the user is not present (not logged in).

Method Detail

getClaims

public Set<String> getClaims()
Returns the names of the associated claims.

Returns:
The names of the associated claims, null if not applicable.

getClaimsRequestJSONObject

public net.minidev.json.JSONObject getClaimsRequestJSONObject()
Gets a default claims request JSON object for the scope token.

Returns:
The default claims request JSON object, null if not applicable.


Copyright © 2013 NimbusDS. All Rights Reserved.