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 StringaccessTokenRequired.private LongexpiresInRequired.private StringmatrixServerNameRequired.private StringtokenTypeRequired.
-
Constructor Summary
Constructors Constructor Description OpenIdResponse()
-
Method Summary
Modifier and Type Method Description StringgetAccessToken()LonggetExpiresIn()StringgetMatrixServerName()StringgetTokenType()voidsetAccessToken(String accessToken)voidsetExpiresIn(Long expiresIn)voidsetMatrixServerName(String matrixServerName)voidsetTokenType(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)
-
-