mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 09:52:44 +00:00
update java petstore samples
This commit is contained in:
@@ -29,6 +29,8 @@ public class HttpBearerAuth implements Authentication {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
* Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
||||||
|
*
|
||||||
|
* @return The bearer token
|
||||||
*/
|
*/
|
||||||
public String getBearerToken() {
|
public String getBearerToken() {
|
||||||
return bearerToken;
|
return bearerToken;
|
||||||
@@ -36,6 +38,8 @@ public class HttpBearerAuth implements Authentication {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
* Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
||||||
|
*
|
||||||
|
* @param bearerToken The bearer token to send in the Authorization header
|
||||||
*/
|
*/
|
||||||
public void setBearerToken(String bearerToken) {
|
public void setBearerToken(String bearerToken) {
|
||||||
this.bearerToken = bearerToken;
|
this.bearerToken = bearerToken;
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ public class HttpBearerAuth implements Authentication {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
* Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
||||||
|
*
|
||||||
|
* @return The bearer token
|
||||||
*/
|
*/
|
||||||
public String getBearerToken() {
|
public String getBearerToken() {
|
||||||
return bearerToken;
|
return bearerToken;
|
||||||
@@ -36,6 +38,8 @@ public class HttpBearerAuth implements Authentication {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
* Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
||||||
|
*
|
||||||
|
* @param bearerToken The bearer token to send in the Authorization header
|
||||||
*/
|
*/
|
||||||
public void setBearerToken(String bearerToken) {
|
public void setBearerToken(String bearerToken) {
|
||||||
this.bearerToken = bearerToken;
|
this.bearerToken = bearerToken;
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ public class HttpBearerAuth implements Authentication {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
* Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
||||||
|
*
|
||||||
|
* @return The bearer token
|
||||||
*/
|
*/
|
||||||
public String getBearerToken() {
|
public String getBearerToken() {
|
||||||
return bearerToken;
|
return bearerToken;
|
||||||
@@ -36,6 +38,8 @@ public class HttpBearerAuth implements Authentication {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
* Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
||||||
|
*
|
||||||
|
* @param bearerToken The bearer token to send in the Authorization header
|
||||||
*/
|
*/
|
||||||
public void setBearerToken(String bearerToken) {
|
public void setBearerToken(String bearerToken) {
|
||||||
this.bearerToken = bearerToken;
|
this.bearerToken = bearerToken;
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ public class HttpBearerAuth implements Authentication {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
* Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
||||||
|
*
|
||||||
|
* @return The bearer token
|
||||||
*/
|
*/
|
||||||
public String getBearerToken() {
|
public String getBearerToken() {
|
||||||
return bearerToken;
|
return bearerToken;
|
||||||
@@ -36,6 +38,8 @@ public class HttpBearerAuth implements Authentication {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
* Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
||||||
|
*
|
||||||
|
* @param bearerToken The bearer token to send in the Authorization header
|
||||||
*/
|
*/
|
||||||
public void setBearerToken(String bearerToken) {
|
public void setBearerToken(String bearerToken) {
|
||||||
this.bearerToken = bearerToken;
|
this.bearerToken = bearerToken;
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ public class HttpBearerAuth implements Authentication {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
* Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
||||||
|
*
|
||||||
|
* @return The bearer token
|
||||||
*/
|
*/
|
||||||
public String getBearerToken() {
|
public String getBearerToken() {
|
||||||
return bearerToken;
|
return bearerToken;
|
||||||
@@ -36,6 +38,8 @@ public class HttpBearerAuth implements Authentication {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
* Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
||||||
|
*
|
||||||
|
* @param bearerToken The bearer token to send in the Authorization header
|
||||||
*/
|
*/
|
||||||
public void setBearerToken(String bearerToken) {
|
public void setBearerToken(String bearerToken) {
|
||||||
this.bearerToken = bearerToken;
|
this.bearerToken = bearerToken;
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ public class HttpBearerAuth implements Authentication {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
* Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
||||||
|
*
|
||||||
|
* @return The bearer token
|
||||||
*/
|
*/
|
||||||
public String getBearerToken() {
|
public String getBearerToken() {
|
||||||
return bearerToken;
|
return bearerToken;
|
||||||
@@ -36,6 +38,8 @@ public class HttpBearerAuth implements Authentication {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
* Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
||||||
|
*
|
||||||
|
* @param bearerToken The bearer token to send in the Authorization header
|
||||||
*/
|
*/
|
||||||
public void setBearerToken(String bearerToken) {
|
public void setBearerToken(String bearerToken) {
|
||||||
this.bearerToken = bearerToken;
|
this.bearerToken = bearerToken;
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ public class HttpBearerAuth implements Authentication {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
* Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
||||||
|
*
|
||||||
|
* @return The bearer token
|
||||||
*/
|
*/
|
||||||
public String getBearerToken() {
|
public String getBearerToken() {
|
||||||
return bearerToken;
|
return bearerToken;
|
||||||
@@ -36,6 +38,8 @@ public class HttpBearerAuth implements Authentication {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
* Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
||||||
|
*
|
||||||
|
* @param bearerToken The bearer token to send in the Authorization header
|
||||||
*/
|
*/
|
||||||
public void setBearerToken(String bearerToken) {
|
public void setBearerToken(String bearerToken) {
|
||||||
this.bearerToken = bearerToken;
|
this.bearerToken = bearerToken;
|
||||||
|
|||||||
Reference in New Issue
Block a user