java.lang.Object
de.businesscode.bcdui.subjectsettings.ExternalAuthenticationToken
de.businesscode.bcdui.subjectsettings.oauth2.OAuthToken
All Implemented Interfaces:
Serializable, org.apache.shiro.authc.AuthenticationToken

public class OAuthToken extends ExternalAuthenticationToken
OAuth authentication token which is supported by OAuthRealm instances. This token carries information about authorization code which is required by a realm to create access tokens to query the resource server. If you want to do authorization with JdbcRealm, enable the following in web.xml: authcStrategy = org.apache.shiro.authc.pam.AtLeastOneSuccessfulStrategy securityManager.authenticator.authenticationStrategy = $authcStrategy securityManager.realms = $oauthcMyRealm, $realmBcdJdbc
See Also:
  • Field Details

    • authCode

      protected final String authCode
    • codeVerifier

      protected final String codeVerifier
    • clientId

      protected final String clientId
    • redirectUri

      protected final String redirectUri
    • authenticatorInstanceId

      protected final String authenticatorInstanceId
    • nonce

      protected final String nonce
  • Constructor Details

  • Method Details

    • getClientId

      public String getClientId()
    • isCreatedBy

      public boolean isCreatedBy(OAuthAuthenticatingFilter authenticator)
      Parameters:
      authenticator -
      Returns:
      true if this token has been created by given authenticator instance
    • getRedirectUri

      public String getRedirectUri()
    • getAuthCode

      public String getAuthCode()
    • setPrincipal

      public void setPrincipal(Object principal)
    • getCredentials

      public Object getCredentials()
      Specified by:
      getCredentials in interface org.apache.shiro.authc.AuthenticationToken
      Overrides:
      getCredentials in class ExternalAuthenticationToken
    • getPrincipal

      public Object getPrincipal()
      Specified by:
      getPrincipal in interface org.apache.shiro.authc.AuthenticationToken
      Overrides:
      getPrincipal in class ExternalAuthenticationToken
    • getNonce

      public String getNonce()
    • toString

      public String toString()
      Overrides:
      toString in class Object