Class OpenIdResponse
- java.lang.Object
-
- io.github.ma1uta.matrix.client.model.openid.OpenIdResponse
-
public class OpenIdResponse extends Object
JSON body response of the OpenID API.
-
-
Field Summary
Fields Modifier and Type Field Description private String
accessToken
Required.private Long
expiresIn
Required.private String
matrixServerName
Required.private String
tokenType
Required.
-
Constructor Summary
Constructors Constructor Description OpenIdResponse()
-
Method Summary
Modifier and Type Method Description String
getAccessToken()
Long
getExpiresIn()
String
getMatrixServerName()
String
getTokenType()
void
setAccessToken(String accessToken)
void
setExpiresIn(Long expiresIn)
void
setMatrixServerName(String matrixServerName)
void
setTokenType(String tokenType)
-
-
-
Field Detail
-
accessToken
private String accessToken
Required. An access token the consumer may use to verify the identity of the person who generated the token. This is given to the federation API GET /openid/userinfo.
-
tokenType
private String tokenType
Required. The string Bearer.
-
matrixServerName
private String matrixServerName
Required. The homeserver domain the consumer should use when attempting to verify the user's identity.
-
expiresIn
private Long expiresIn
Required. The number of seconds before this token expires and a new one must be generated.
-
-
Method Detail
-
getAccessToken
public String getAccessToken()
-
setAccessToken
public void setAccessToken(String accessToken)
-
getTokenType
public String getTokenType()
-
setTokenType
public void setTokenType(String tokenType)
-
getMatrixServerName
public String getMatrixServerName()
-
setMatrixServerName
public void setMatrixServerName(String matrixServerName)
-
getExpiresIn
public Long getExpiresIn()
-
setExpiresIn
public void setExpiresIn(Long expiresIn)
-
-