public class JwtClaimsValidatorTest extends Object
| Constructor and Description |
|---|
JwtClaimsValidatorTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
createValidator() |
void |
shouldAcceptJwtIfAudienceIsOneOfValidAudiences() |
void |
shouldAcceptJwtIfIssuerDoesNotMatchSubject() |
void |
shouldAcceptJwtIfLifetimeDoesntExceedsMaxLifetime() |
void |
shouldAcceptSelfIssuedValidClaims() |
void |
shouldRejectJwtIfIssuerIsBlank() |
void |
shouldRejectJwtIfKidDoesNotStartWithIssuer() |
void |
shouldRejectJwtIfLifetimeExceedsOneHour() |
void |
shouldRejectJwtIfTheAudienceIsNotOneOfValidAudiences() |
void |
shouldRejectJwtIfTheAudienceIsNotValid() |
void |
shouldRejectJwtThatHasExpired() |
void |
shouldRejectJwtThatIsNeverValid() |
void |
shouldRejectJwtThatIsNotValidYetWhenNotUsingNotBefore() |
void |
shouldRejectJwtThatIsNotValidYetWhenUsingNotBefore() |
void |
shouldRejectJwtThatWasIssuedImmediatelyAfterItsExpiry() |
void |
shouldRejectJwtThatWasValidImmediatelyBeforeTheTimeItWasIssued() |
public void createValidator()
public void shouldAcceptSelfIssuedValidClaims()
throws Exception
Exceptionpublic void shouldAcceptJwtIfIssuerDoesNotMatchSubject()
throws Exception
Exceptionpublic void shouldRejectJwtIfIssuerIsBlank()
throws Exception
Exceptionpublic void shouldRejectJwtIfKidDoesNotStartWithIssuer()
throws Exception
Exceptionpublic void shouldAcceptJwtIfAudienceIsOneOfValidAudiences()
throws Exception
Exceptionpublic void shouldRejectJwtIfTheAudienceIsNotValid()
throws Exception
Exceptionpublic void shouldRejectJwtIfTheAudienceIsNotOneOfValidAudiences()
throws Exception
Exceptionpublic void shouldRejectJwtThatWasIssuedImmediatelyAfterItsExpiry()
throws Exception
Exceptionpublic void shouldRejectJwtThatWasValidImmediatelyBeforeTheTimeItWasIssued()
throws Exception
Exceptionpublic void shouldRejectJwtThatIsNeverValid()
throws Exception
Exceptionpublic void shouldRejectJwtIfLifetimeExceedsOneHour()
throws Exception
Exceptionpublic void shouldAcceptJwtIfLifetimeDoesntExceedsMaxLifetime()
throws Exception
Exceptionpublic void shouldRejectJwtThatHasExpired()
throws Exception
Exceptionpublic void shouldRejectJwtThatIsNotValidYetWhenUsingNotBefore()
throws Exception
ExceptionCopyright © 2017 Atlassian. All rights reserved.