Package | Description |
---|---|
com.nimbusds.oauth2.sdk |
Classes for representing, serialising and parsing OAuth 2.0 client requests
and authorisation server responses.
|
com.nimbusds.oauth2.sdk.as |
OAuth 2.0 Authorisation Server (AS) classes.
|
com.nimbusds.oauth2.sdk.pkce |
Proof Key for Code Exchange (PKCE) classes.
|
com.nimbusds.openid.connect.sdk |
Classes for representing, serialising and parsing OpenID Connect client
requests and server responses.
|
Modifier and Type | Method | Description |
---|---|---|
CodeChallengeMethod |
AuthorizationRequest.getCodeChallengeMethod() |
Returns the code challenge method for PKCE.
|
Modifier and Type | Method | Description |
---|---|---|
AuthorizationRequest.Builder |
AuthorizationRequest.Builder.codeChallenge(CodeChallenge codeChallenge,
CodeChallengeMethod codeChallengeMethod) |
Deprecated.
|
AuthorizationRequest.Builder |
AuthorizationRequest.Builder.codeChallenge(CodeVerifier codeVerifier,
CodeChallengeMethod codeChallengeMethod) |
Sets the code challenge for Proof Key for Code Exchange
(PKCE) by public OAuth clients.
|
Constructor | Description |
---|---|
AuthorizationRequest(URI uri,
ResponseType rt,
ResponseMode rm,
ClientID clientID,
URI redirectURI,
Scope scope,
State state,
CodeChallenge codeChallenge,
CodeChallengeMethod codeChallengeMethod) |
Creates a new authorisation request with PKCE support.
|
AuthorizationRequest(URI uri,
ResponseType rt,
ResponseMode rm,
ClientID clientID,
URI redirectURI,
Scope scope,
State state,
CodeChallenge codeChallenge,
CodeChallengeMethod codeChallengeMethod,
Map<String,String> customParams) |
Creates a new authorisation request with PKCE support and additional
custom parameters.
|
Modifier and Type | Method | Description |
---|---|---|
List<CodeChallengeMethod> |
AuthorizationServerMetadata.getCodeChallengeMethods() |
Gets the supported authorisation code challenge methods for PKCE.
|
Modifier and Type | Method | Description |
---|---|---|
void |
AuthorizationServerMetadata.setCodeChallengeMethods(List<CodeChallengeMethod> codeChallengeMethods) |
Gets the supported authorisation code challenge methods for PKCE.
|
Modifier and Type | Field | Description |
---|---|---|
static CodeChallengeMethod |
CodeChallengeMethod.PLAIN |
Plain code challenge method.
|
static CodeChallengeMethod |
CodeChallengeMethod.S256 |
SHA-256 code challenge method.
|
Modifier and Type | Method | Description |
---|---|---|
static CodeChallengeMethod |
CodeChallengeMethod.getDefault() |
Gets the default code challenge method.
|
static CodeChallengeMethod |
CodeChallengeMethod.parse(String value) |
Parses a code challenge method from the specified value.
|
Modifier and Type | Method | Description |
---|---|---|
static CodeChallenge |
CodeChallenge.compute(CodeChallengeMethod method,
CodeVerifier codeVerifier) |
Computes the code challenge using the specified method and verifier.
|
Modifier and Type | Method | Description |
---|---|---|
AuthenticationRequest.Builder |
AuthenticationRequest.Builder.codeChallenge(CodeChallenge codeChallenge,
CodeChallengeMethod codeChallengeMethod) |
Deprecated.
|
AuthenticationRequest.Builder |
AuthenticationRequest.Builder.codeChallenge(CodeVerifier codeVerifier,
CodeChallengeMethod codeChallengeMethod) |
Sets the code challenge for Proof Key for Code Exchange
(PKCE) by public OAuth clients.
|
Constructor | Description |
---|---|
AuthenticationRequest(URI uri,
ResponseType rt,
ResponseMode rm,
Scope scope,
ClientID clientID,
URI redirectURI,
State state,
Nonce nonce,
Display display,
Prompt prompt,
int maxAge,
List<com.nimbusds.langtag.LangTag> uiLocales,
List<com.nimbusds.langtag.LangTag> claimsLocales,
com.nimbusds.jwt.JWT idTokenHint,
String loginHint,
List<ACR> acrValues,
ClaimsRequest claims,
com.nimbusds.jwt.JWT requestObject,
URI requestURI,
CodeChallenge codeChallenge,
CodeChallengeMethod codeChallengeMethod) |
Creates a new OpenID Connect authentication request.
|
AuthenticationRequest(URI uri,
ResponseType rt,
ResponseMode rm,
Scope scope,
ClientID clientID,
URI redirectURI,
State state,
Nonce nonce,
Display display,
Prompt prompt,
int maxAge,
List<com.nimbusds.langtag.LangTag> uiLocales,
List<com.nimbusds.langtag.LangTag> claimsLocales,
com.nimbusds.jwt.JWT idTokenHint,
String loginHint,
List<ACR> acrValues,
ClaimsRequest claims,
com.nimbusds.jwt.JWT requestObject,
URI requestURI,
CodeChallenge codeChallenge,
CodeChallengeMethod codeChallengeMethod,
Map<String,String> customParams) |
Creates a new OpenID Connect authentication request with additional
custom parameters.
|
Copyright © 2018 Connect2id Ltd.. All rights reserved.