Class OAuth2AuthorizationResponse.Builder
- java.lang.Object
-
- org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationResponse.Builder
-
- Enclosing class:
- OAuth2AuthorizationResponse
public static final class OAuth2AuthorizationResponse.Builder extends java.lang.Object
A builder forOAuth2AuthorizationResponse
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuth2AuthorizationResponse
build()
Builds a newOAuth2AuthorizationResponse
.OAuth2AuthorizationResponse.Builder
code(java.lang.String code)
Sets the authorization code.OAuth2AuthorizationResponse.Builder
errorCode(java.lang.String errorCode)
Sets the error code.OAuth2AuthorizationResponse.Builder
errorDescription(java.lang.String errorDescription)
Sets the error description.OAuth2AuthorizationResponse.Builder
errorUri(java.lang.String errorUri)
Sets the error uri.OAuth2AuthorizationResponse.Builder
redirectUri(java.lang.String redirectUri)
Sets the uri where the response was redirected to.OAuth2AuthorizationResponse.Builder
state(java.lang.String state)
Sets the state.
-
-
-
Method Detail
-
redirectUri
public OAuth2AuthorizationResponse.Builder redirectUri(java.lang.String redirectUri)
Sets the uri where the response was redirected to.- Parameters:
redirectUri
- the uri where the response was redirected to- Returns:
- the
OAuth2AuthorizationResponse.Builder
-
state
public OAuth2AuthorizationResponse.Builder state(java.lang.String state)
Sets the state.- Parameters:
state
- the state- Returns:
- the
OAuth2AuthorizationResponse.Builder
-
code
public OAuth2AuthorizationResponse.Builder code(java.lang.String code)
Sets the authorization code.- Parameters:
code
- the authorization code- Returns:
- the
OAuth2AuthorizationResponse.Builder
-
errorCode
public OAuth2AuthorizationResponse.Builder errorCode(java.lang.String errorCode)
Sets the error code.- Parameters:
errorCode
- the error code- Returns:
- the
OAuth2AuthorizationResponse.Builder
-
errorDescription
public OAuth2AuthorizationResponse.Builder errorDescription(java.lang.String errorDescription)
Sets the error description.- Parameters:
errorDescription
- the error description- Returns:
- the
OAuth2AuthorizationResponse.Builder
-
errorUri
public OAuth2AuthorizationResponse.Builder errorUri(java.lang.String errorUri)
Sets the error uri.- Parameters:
errorUri
- the error uri- Returns:
- the
OAuth2AuthorizationResponse.Builder
-
build
public OAuth2AuthorizationResponse build()
Builds a newOAuth2AuthorizationResponse
.- Returns:
- a
OAuth2AuthorizationResponse
-
-