Class OAuth20Credentials

java.lang.Object
org.pac4j.core.credentials.Credentials
org.pac4j.oauth.credentials.OAuth20Credentials
All Implemented Interfaces:
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:
  • Field Summary

    Fields inherited from class org.pac4j.core.credentials.Credentials

    logoutType, source
  • Constructor Summary

    Constructors
    Constructor
    Description
    For OAuth2 Authorization Code Flow.
  • Method Summary

    Methods inherited from class org.pac4j.core.credentials.Credentials

    canEqual, equals, getLogoutType, getSource, getUserProfile, hashCode, isForAuthentication, setSource, setUserProfile, toString

    Methods inherited from class java.lang.Object

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

    • OAuth20Credentials

      public OAuth20Credentials(String code)
      For OAuth2 Authorization Code Flow.
      Parameters:
      code - the authorization code