oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/endpoint/OAuth2AuthorizationResponse.java
public static Builder success(String code) {
		Assert.hasText(code, "code cannot be empty");
		return new Builder().code(code);
	}
public static Builder success(String code) {
		Assert.hasText(code, "code cannot be empty");
		return new Builder().code(code);
	}
public static Builder success ( String code ) { Assert . hasText ( code , "code cannot be empty" ) ; return new Builder ( ) . code ( code ) ; }
Returns a new {@link Builder}, initialized with the authorization code.

@param code the authorization code
@return the {@link Builder}
Returns a new { @link Builder } initialized with the authorization code .