update java petstore samples

This commit is contained in:
William Cheng 2019-03-12 09:51:54 +08:00
parent 1491c7037c
commit 85b936b498
7 changed files with 28 additions and 0 deletions

View File

@ -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.
*
* @return The bearer token
*/
public String getBearerToken() {
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.
*
* @param bearerToken The bearer token to send in the Authorization header
*/
public void setBearerToken(String bearerToken) {
this.bearerToken = bearerToken;

View File

@ -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.
*
* @return The bearer token
*/
public String getBearerToken() {
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.
*
* @param bearerToken The bearer token to send in the Authorization header
*/
public void setBearerToken(String bearerToken) {
this.bearerToken = bearerToken;

View File

@ -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.
*
* @return The bearer token
*/
public String getBearerToken() {
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.
*
* @param bearerToken The bearer token to send in the Authorization header
*/
public void setBearerToken(String bearerToken) {
this.bearerToken = bearerToken;

View File

@ -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.
*
* @return The bearer token
*/
public String getBearerToken() {
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.
*
* @param bearerToken The bearer token to send in the Authorization header
*/
public void setBearerToken(String bearerToken) {
this.bearerToken = bearerToken;

View File

@ -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.
*
* @return The bearer token
*/
public String getBearerToken() {
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.
*
* @param bearerToken The bearer token to send in the Authorization header
*/
public void setBearerToken(String bearerToken) {
this.bearerToken = bearerToken;

View File

@ -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.
*
* @return The bearer token
*/
public String getBearerToken() {
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.
*
* @param bearerToken The bearer token to send in the Authorization header
*/
public void setBearerToken(String bearerToken) {
this.bearerToken = bearerToken;

View File

@ -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.
*
* @return The bearer token
*/
public String getBearerToken() {
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.
*
* @param bearerToken The bearer token to send in the Authorization header
*/
public void setBearerToken(String bearerToken) {
this.bearerToken = bearerToken;