Package com.inrupt.client.openid
Class AuthorizationRequest
- java.lang.Object
-
- com.inrupt.client.openid.AuthorizationRequest
-
public final class AuthorizationRequest extends Object
A class representing an authorization request at an OpenID provider.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuthorizationRequest.Builder
A class for buildingAuthorizationRequest
objects.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClientId()
Get the OAuth 2.0 client id.String
getCodeChallenge()
Get the PKCE code challenge.String
getCodeChallengeMethod()
Get the PKCE code challenge method.String
getNonce()
Get the OpenID Connect nonce value.URI
getRedirectUri()
Get the OAuth 2.0 redirect URI.String
getResponseType()
Get the OAuth 2.0 response type.String
getScope()
Get the OAuth 2.0 scope value.String
getState()
Get the OAuth 2.0 state value.static AuthorizationRequest.Builder
newBuilder()
Create a new builder object for an authorization request.
-
-
-
Method Detail
-
getResponseType
public String getResponseType()
Get the OAuth 2.0 response type.- Returns:
- the response type
-
getScope
public String getScope()
Get the OAuth 2.0 scope value.The response will be a space-delimited string of scope values.
- Returns:
- the scope value
-
getCodeChallenge
public String getCodeChallenge()
Get the PKCE code challenge.- Returns:
- the code challenge value.
-
getCodeChallengeMethod
public String getCodeChallengeMethod()
Get the PKCE code challenge method.- Returns:
- the code challenge method
-
getClientId
public String getClientId()
Get the OAuth 2.0 client id.- Returns:
- the client id
-
getRedirectUri
public URI getRedirectUri()
Get the OAuth 2.0 redirect URI.- Returns:
- the redirect URI
-
getState
public String getState()
Get the OAuth 2.0 state value.- Returns:
- the state value
-
getNonce
public String getNonce()
Get the OpenID Connect nonce value.- Returns:
- the nonce value
-
newBuilder
public static AuthorizationRequest.Builder newBuilder()
Create a new builder object for an authorization request.- Returns:
- a new builder
-
-