Class AbstractAuthentication

java.lang.Object
com.atlassian.connect.spring.internal.auth.AbstractAuthentication
All Implemented Interfaces:
Serializable, Principal, org.springframework.security.core.Authentication
Direct Known Subclasses:
AsymmetricAuthentication, JwtAuthentication

public abstract class AbstractAuthentication extends Object implements org.springframework.security.core.Authentication
See Also:
  • Field Details

    • CONTEXT_QSH

      public static final String CONTEXT_QSH
      See Also:
    • hostUser

      protected final AtlassianHostUser hostUser
    • claims

      protected final com.nimbusds.jwt.JWTClaimsSet claims
    • queryStringHash

      protected final String queryStringHash
  • Constructor Details

    • AbstractAuthentication

      protected AbstractAuthentication(AtlassianHostUser hostUser, com.nimbusds.jwt.JWTClaimsSet claims, String queryStringHash)
  • Method Details

    • getCredentials

      public Object getCredentials()
      Specified by:
      getCredentials in interface org.springframework.security.core.Authentication
    • getDetails

      public Object getDetails()
      Specified by:
      getDetails in interface org.springframework.security.core.Authentication
    • getPrincipal

      public Object getPrincipal()
      Specified by:
      getPrincipal in interface org.springframework.security.core.Authentication
    • isAuthenticated

      public boolean isAuthenticated()
      Specified by:
      isAuthenticated in interface org.springframework.security.core.Authentication
    • setAuthenticated

      public void setAuthenticated(boolean b) throws IllegalArgumentException
      Specified by:
      setAuthenticated in interface org.springframework.security.core.Authentication
      Throws:
      IllegalArgumentException
    • validateQueryStringHash

      public void validateQueryStringHash(boolean checkValues) throws JwtInvalidClaimException
      Throws:
      JwtInvalidClaimException