mirror of
https://github.com/tribufu/tribufu-java
synced 2026-05-18 09:35:44 +00:00
Update oauth2 types
This commit is contained in:
parent
4c25809bed
commit
62a0894ec2
3 changed files with 18 additions and 18 deletions
|
|
@ -3,11 +3,11 @@
|
||||||
package com.tribufu.oauth2;
|
package com.tribufu.oauth2;
|
||||||
|
|
||||||
public class OAuth2AuthorizeRequest {
|
public class OAuth2AuthorizeRequest {
|
||||||
private final OAuth2ResponseType responseType;
|
public final OAuth2ResponseType responseType;
|
||||||
private final String clientId;
|
public final String clientId;
|
||||||
private final String scope;
|
public final String scope;
|
||||||
private final String redirectUri;
|
public final String redirectUri;
|
||||||
private final String state;
|
public final String state;
|
||||||
|
|
||||||
public OAuth2AuthorizeRequest(OAuth2ResponseType responseType, String clientId, String scope, String redirectUri,
|
public OAuth2AuthorizeRequest(OAuth2ResponseType responseType, String clientId, String scope, String redirectUri,
|
||||||
String state) {
|
String state) {
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,14 @@
|
||||||
package com.tribufu.oauth2;
|
package com.tribufu.oauth2;
|
||||||
|
|
||||||
public class OAuth2TokenRequest {
|
public class OAuth2TokenRequest {
|
||||||
private final OAuth2GrantType grantType;
|
public final OAuth2GrantType grantType;
|
||||||
private final String code;
|
public final String code;
|
||||||
private final String refreshToken;
|
public final String refreshToken;
|
||||||
private final String username;
|
public final String username;
|
||||||
private final String password;
|
public final String password;
|
||||||
private final String clientId;
|
public final String clientId;
|
||||||
private final String clientSecret;
|
public final String clientSecret;
|
||||||
private final String redirectUri;
|
public final String redirectUri;
|
||||||
|
|
||||||
public OAuth2TokenRequest(OAuth2GrantType grantType, String code, String refreshToken, String username,
|
public OAuth2TokenRequest(OAuth2GrantType grantType, String code, String refreshToken, String username,
|
||||||
String password, String clientId, String clientSecret, String redirectUri) {
|
String password, String clientId, String clientSecret, String redirectUri) {
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,11 @@
|
||||||
package com.tribufu.oauth2;
|
package com.tribufu.oauth2;
|
||||||
|
|
||||||
public class OAuth2TokenResponse {
|
public class OAuth2TokenResponse {
|
||||||
private final OAuth2TokenType tokenType;
|
public final OAuth2TokenType tokenType;
|
||||||
private final String accessToken;
|
public final String accessToken;
|
||||||
private final String refreshToken;
|
public final String refreshToken;
|
||||||
private final String scope;
|
public final String scope;
|
||||||
private final int expiresIn;
|
public final int expiresIn;
|
||||||
|
|
||||||
public OAuth2TokenResponse(OAuth2TokenType tokenType, String accessToken, String refreshToken, String scope,
|
public OAuth2TokenResponse(OAuth2TokenType tokenType, String accessToken, String refreshToken, String scope,
|
||||||
int expiresIn) {
|
int expiresIn) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue