Class ResponseType

All Implemented Interfaces:
Serializable, Cloneable, Iterable<ResponseType.Value>, Collection<ResponseType.Value>, Set<ResponseType.Value>

@NotThreadSafe public class ResponseType extends HashSet<ResponseType.Value>
Authorisation response type.

Example response type implying an authorisation code flow:

 ResponseType rt = ResponseType.CODE;
 

Example response type from OpenID Connect specifying an ID token and an access token (implies implicit flow):

 ResponseType rt = ResponseType.IDTOKEN_TOKEN);
 

The following helper methods can be used to find out the implied OAuth 2.0 protocol flow for a response type:

Related specifications:

  • OAuth 2.0 (RFC 6749), sections 3.1.1 and 4.1.1.
  • OAuth 2.0 Multiple Response Type Encoding Practices.
See Also: