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 Summary
FieldsModifier and TypeFieldDescriptionprotected final com.nimbusds.jwt.JWTClaimsSet
static final String
protected final AtlassianHostUser
protected final String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractAuthentication
(AtlassianHostUser hostUser, com.nimbusds.jwt.JWTClaimsSet claims, String queryStringHash) -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setAuthenticated
(boolean b) void
validateQueryStringHash
(boolean checkValues) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.security.core.Authentication
getAuthorities
-
Field Details
-
CONTEXT_QSH
- See Also:
-
hostUser
-
claims
protected final com.nimbusds.jwt.JWTClaimsSet claims -
queryStringHash
-
-
Constructor Details
-
AbstractAuthentication
protected AbstractAuthentication(AtlassianHostUser hostUser, com.nimbusds.jwt.JWTClaimsSet claims, String queryStringHash)
-
-
Method Details
-
getCredentials
- Specified by:
getCredentials
in interfaceorg.springframework.security.core.Authentication
-
getDetails
- Specified by:
getDetails
in interfaceorg.springframework.security.core.Authentication
-
getPrincipal
- Specified by:
getPrincipal
in interfaceorg.springframework.security.core.Authentication
-
isAuthenticated
public boolean isAuthenticated()- Specified by:
isAuthenticated
in interfaceorg.springframework.security.core.Authentication
-
setAuthenticated
- Specified by:
setAuthenticated
in interfaceorg.springframework.security.core.Authentication
- Throws:
IllegalArgumentException
-
validateQueryStringHash
- Throws:
JwtInvalidClaimException
-