org.dmfs.oauth2.client.tokens.JsonAccessToken.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oauth2-essentials Show documentation
Show all versions of oauth2-essentials Show documentation
An OAuth2 client implementation based on http-client-essentials.
???? 3 b
4 5 6
7 8 9 :
; < = > ?
@ A B C
; D
E F G
H I J K
; L
M
7 N O P Q R mTokenResponse Lorg/json/JSONObject; mScope $Lorg/dmfs/oauth2/client/OAuth2Scope;
mIssueDate Lorg/dmfs/rfc5545/DateTime; <(Lorg/json/JSONObject;Lorg/dmfs/oauth2/client/OAuth2Scope;)V Code accessToken ()Ljava/lang/String;
StackMapTable =
Exceptions tokenType hasRefreshToken ()Z refreshToken expiriationDate ()Lorg/dmfs/rfc5545/DateTime; scope &()Lorg/dmfs/oauth2/client/OAuth2Scope; $ S ! T U 1 " # access_token V W X org/json/JSONException 4org/dmfs/httpessentials/exceptions/ProtocolException +Can't read access_token from token response $ Y
token_type )Can't read token_type from token response
refresh_token Z [ - . java/util/NoSuchElementException No refresh token found $ \ ,Can't read refresh_token from token response org/dmfs/rfc5545/Duration
expires_in ] ^ $ _ ` a )Can't read expires_in from token response -org/dmfs/oauth2/client/tokens/JsonAccessToken java/lang/Object (org/dmfs/oauth2/client/OAuth2AccessToken ()V org/dmfs/rfc5545/DateTime now org/json/JSONObject getString &(Ljava/lang/String;)Ljava/lang/String; *(Ljava/lang/String;Ljava/lang/Throwable;)V optString 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; (Ljava/lang/String;)V getInt (Ljava/lang/String;)I (III)V addDuration 8(Lorg/dmfs/rfc5545/Duration;)Lorg/dmfs/rfc5545/DateTime; 1 ! " # $ % &