Package org.pac4j.oauth.credentials
Class OAuth20Credentials
- java.lang.Object
-
- org.pac4j.core.credentials.Credentials
-
- org.pac4j.oauth.credentials.OAuth20Credentials
-
- All Implemented Interfaces:
java.io.Serializable
public class OAuth20Credentials extends org.pac4j.core.credentials.Credentials
This class represents an OAuth credentials for OAuth 2.0 an authorization code.- Since:
- 1.9.0
- Author:
- zhangzhenli
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OAuth20Credentials(java.lang.String code)
For OAuth2 Authorization Code Flow.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
com.github.scribejava.core.model.OAuth2AccessToken
getAccessToken()
java.lang.String
getCode()
int
hashCode()
void
setAccessToken(com.github.scribejava.core.model.OAuth2AccessToken accessToken)
java.lang.String
toString()
-
-
-
Method Detail
-
getCode
public java.lang.String getCode()
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in classorg.pac4j.core.credentials.Credentials
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classorg.pac4j.core.credentials.Credentials
-
getAccessToken
public com.github.scribejava.core.model.OAuth2AccessToken getAccessToken()
-
setAccessToken
public void setAccessToken(com.github.scribejava.core.model.OAuth2AccessToken accessToken)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-