Class RevokeTokenTest
- java.lang.Object
-
- net.shibboleth.idp.plugin.oidc.op.token.support.testing.BaseTokenClaimsSetTest
-
- net.shibboleth.idp.plugin.oidc.op.oauth2.profile.impl.RevokeTokenTest
-
public class RevokeTokenTest extends BaseTokenClaimsSetTest
Tests forRevokeToken.
-
-
Field Summary
Fields Modifier and Type Field Description private net.shibboleth.idp.plugin.oidc.op.oauth2.profile.impl.RevokeTokenactionprivate AccessTokenClaimsSetatClaimsSetprivate ProfileRequestContextprcprivate RevocationCacherevocationCacheprivate RefreshTokenClaimsSetrfClaimsSetprivate RequestContextsrcprivate MemoryStorageServicestorageServiceprivate net.shibboleth.idp.plugin.oidc.op.oauth2.messaging.context.OAuth2TokenMgmtResponseContexttokenCtx-
Fields inherited from class net.shibboleth.idp.plugin.oidc.op.token.support.testing.BaseTokenClaimsSetTest
acr, authTime, claims, clientID, codeChallenge, consentedClaims, consentEnabled, dlClaims, dlClaimsID, dlClaimsUI, exp, iat, idpSessionId, issuer, nonce, redirectURI, scope, sealer, subject, userPrincipal
-
-
Constructor Summary
Constructors Constructor Description RevokeTokenTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp(net.shibboleth.oidc.profile.oauth2.config.OAuth2TokenRevocationConfiguration.OAuth2TokenRevocationMethod method, String rootTokenId)protected voidsetUp(net.shibboleth.oidc.profile.oauth2.config.OAuth2TokenRevocationConfiguration.OAuth2TokenRevocationMethod method, String rootTokenId, Instant exp)protected voidtearDown()voidtestChain_NoToken()voidtestChain_RevokeAccessToken()voidtestChain_RevokeAccessTokenViaRootToken()voidtestChain_RevokeRefreshToken()voidtestChain_RevokeRefreshTokenViaRootToken()voidtestSingleToken_ExpiredAccessToken()voidtestSingleToken_ExpiredRefreshToken()voidtestSingleToken_NoToken()voidtestSingleToken_RevokeAccessToken()voidtestSingleToken_RevokeAccessTokenViaRootToken()voidtestSingleToken_RevokeRefreshToken()voidtestSingleToken_RevokeRefreshTokenViaRootToken()-
Methods inherited from class net.shibboleth.idp.plugin.oidc.op.token.support.testing.BaseTokenClaimsSetTest
setUpParameters, setupSealer
-
-
-
-
Field Detail
-
action
private net.shibboleth.idp.plugin.oidc.op.oauth2.profile.impl.RevokeToken action
-
storageService
private MemoryStorageService storageService
-
atClaimsSet
private AccessTokenClaimsSet atClaimsSet
-
rfClaimsSet
private RefreshTokenClaimsSet rfClaimsSet
-
revocationCache
private RevocationCache revocationCache
-
src
private RequestContext src
-
prc
private ProfileRequestContext prc
-
tokenCtx
private net.shibboleth.idp.plugin.oidc.op.oauth2.messaging.context.OAuth2TokenMgmtResponseContext tokenCtx
-
-
Method Detail
-
setUp
protected void setUp(net.shibboleth.oidc.profile.oauth2.config.OAuth2TokenRevocationConfiguration.OAuth2TokenRevocationMethod method, String rootTokenId) throws Exception- Throws:
Exception
-
setUp
protected void setUp(net.shibboleth.oidc.profile.oauth2.config.OAuth2TokenRevocationConfiguration.OAuth2TokenRevocationMethod method, String rootTokenId, Instant exp) throws Exception- Throws:
Exception
-
tearDown
@AfterMethod protected void tearDown()
-
testChain_RevokeAccessToken
public void testChain_RevokeAccessToken() throws Exception- Throws:
Exception
-
testChain_RevokeRefreshToken
public void testChain_RevokeRefreshToken() throws Exception- Throws:
Exception
-
testChain_RevokeAccessTokenViaRootToken
public void testChain_RevokeAccessTokenViaRootToken() throws Exception- Throws:
Exception
-
testChain_RevokeRefreshTokenViaRootToken
public void testChain_RevokeRefreshTokenViaRootToken() throws Exception- Throws:
Exception
-
testSingleToken_ExpiredAccessToken
public void testSingleToken_ExpiredAccessToken() throws Exception- Throws:
Exception
-
testSingleToken_ExpiredRefreshToken
public void testSingleToken_ExpiredRefreshToken() throws Exception- Throws:
Exception
-
testSingleToken_RevokeAccessToken
public void testSingleToken_RevokeAccessToken() throws Exception- Throws:
Exception
-
testSingleToken_RevokeRefreshToken
public void testSingleToken_RevokeRefreshToken() throws Exception- Throws:
Exception
-
testSingleToken_RevokeAccessTokenViaRootToken
public void testSingleToken_RevokeAccessTokenViaRootToken() throws Exception- Throws:
Exception
-
-