Class 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()  
      • Methods inherited from class org.pac4j.core.credentials.Credentials

        getUserProfile, setUserProfile
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OAuth20Credentials

        public OAuth20Credentials​(java.lang.String code)
        For OAuth2 Authorization Code Flow.
        Parameters:
        code - the authorization code
    • Method Detail

      • getCode

        public java.lang.String getCode()
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in class org.pac4j.core.credentials.Credentials
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in class org.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 class java.lang.Object