public class TokenValidatorImplRequirePolicyTest extends Object
| Modifier and Type | Field and Description |
|---|---|
org.mockito.junit.MockitoRule |
mockitoRule |
org.junit.rules.ExpectedException |
thrown |
| Constructor and Description |
|---|
TokenValidatorImplRequirePolicyTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
badEffectiveSubjectReturnsNotAuthorized() |
void |
badIssuerReturnsNotAuthorized() |
void |
bothIssuerAndImpersonationIssuerAreEmpty() |
void |
goodEffectiveSubjectReturnsAuthorized() |
void |
goodSubjectReturnsAuthorized() |
void |
goodSubjectWithImpersonationReturnsAuthorized() |
void |
impersonationReturnsAuthorized() |
void |
invalidTokenReturnsNotAuthenticated() |
void |
noEffectiveSubjectWhenImpersonationIsEnabled() |
void |
noTokenReturnsNotAuthenticated() |
void |
setUp() |
void |
subjectImpersonationRequiresAnIssuerWhitelist() |
void |
unresolvableKeyReturnsNotVerified() |
void |
validImpersonationReturnsAuthorized() |
void |
validImpersonationReturnsAuthorizedIssuerIsEmpty() |
void |
wrongPrefixReturnsNotAuthenticated() |
public final org.mockito.junit.MockitoRule mockitoRule
public final org.junit.rules.ExpectedException thrown
public void noTokenReturnsNotAuthenticated()
public void wrongPrefixReturnsNotAuthenticated()
throws Exception
Exceptionpublic void invalidTokenReturnsNotAuthenticated()
throws Exception
Exceptionpublic void unresolvableKeyReturnsNotVerified()
throws Exception
Exceptionpublic void badIssuerReturnsNotAuthorized()
throws Exception
Exceptionpublic void badEffectiveSubjectReturnsNotAuthorized()
throws Exception
Exceptionpublic void goodEffectiveSubjectReturnsAuthorized()
throws Exception
Exceptionpublic void subjectImpersonationRequiresAnIssuerWhitelist()
throws Exception
Exceptionpublic void noEffectiveSubjectWhenImpersonationIsEnabled()
throws Exception
Exceptionpublic void goodSubjectReturnsAuthorized()
throws Exception
Exceptionpublic void goodSubjectWithImpersonationReturnsAuthorized()
throws Exception
Exceptionpublic void validImpersonationReturnsAuthorized()
throws Exception
Exceptionpublic void validImpersonationReturnsAuthorizedIssuerIsEmpty()
throws Exception
Exceptionpublic void bothIssuerAndImpersonationIssuerAreEmpty()
throws Exception
Exceptionpublic void impersonationReturnsAuthorized()
throws Exception
Exceptionpublic void setUp()
Copyright © 2017 Atlassian. All rights reserved.