Class SetAuthorizationCodeToResponseContextTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- net.shibboleth.idp.plugin.oidc.op.profile.impl.BaseOIDCResponseActionTest
-
- net.shibboleth.idp.plugin.oidc.op.profile.impl.SetAuthorizationCodeToResponseContextTest
-
public class SetAuthorizationCodeToResponseContextTest extends BaseOIDCResponseActionTest
SetAuthorizationCodeToResponseContextunit test.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.BaseOIDCResponseActionTest
BaseOIDCResponseActionTest.MockRevocationCache
-
-
Field Summary
Fields Modifier and Type Field Description private net.shibboleth.idp.plugin.oidc.op.profile.impl.SetAuthorizationCodeToResponseContextactionAction to test.-
Fields inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.BaseOIDCResponseActionTest
clientId, credentialEC256, credentialEC384, credentialEC521, credentialHMAC, credentialRSA, idGenerator, metadataCtx, profileRequestCtx, request, requestCtx, respCtx, rpCtx, subject
-
-
Constructor Summary
Constructors Constructor Description SetAuthorizationCodeToResponseContextTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidinit()private voidinit(Function<ProfileRequestContext,BiFunction<ProfileRequestContext,Map<String,Object>,Map<String,Object>>> manipulationStrategy)voidtestFailNoProfileConf()fails as there is no profile conf.voidtestFailNoRPCtx()fails as there is no rp ctx.voidtestFailNoSubjectCtx()fails as there is no subject ctx.voidtestSuccess()Basic success case.voidtestSuccessConsent()Basic success case plus consent.voidtestSuccessPKCE()Test PKCE with default challenge method.voidtestSuccessPKCEDefault()Test PKCE with default challenge method.voidtestSuccessWithCustomClaim()voidtestSuccessWithTokenDelivery()Basic success case plus delivery claims.-
Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.BaseOIDCResponseActionTest
addEntryToMap, getDataSealer, initializeDataSealer, setAuthenticationRequest, setIdTokenToResponseContext, setTokenRequest, setUp, setUserInfoRequest, setUserInfoResponseToResponseContext, signIdTokenInResponseContext, signUserInfoResponseInResponseContext
-
-
-
-
Method Detail
-
init
private void init() throws ComponentInitializationException, NoSuchAlgorithmException, URISyntaxException
-
init
private void init(Function<ProfileRequestContext,BiFunction<ProfileRequestContext,Map<String,Object>,Map<String,Object>>> manipulationStrategy) throws ComponentInitializationException, NoSuchAlgorithmException, URISyntaxException
-
testSuccess
public void testSuccess() throws ComponentInitializationException, NoSuchAlgorithmException, URISyntaxException, ParseException, DataSealerExceptionBasic success case.
-
testSuccessWithCustomClaim
public void testSuccessWithCustomClaim() throws ComponentInitializationException, NoSuchAlgorithmException, URISyntaxException, ParseException, DataSealerException
-
testSuccessConsent
public void testSuccessConsent() throws ComponentInitializationException, NoSuchAlgorithmException, URISyntaxException, ParseException, DataSealerExceptionBasic success case plus consent.
-
testSuccessWithTokenDelivery
public void testSuccessWithTokenDelivery() throws ComponentInitializationException, NoSuchAlgorithmException, URISyntaxException, ParseException, DataSealerExceptionBasic success case plus delivery claims.
-
testSuccessPKCE
public void testSuccessPKCE() throws ComponentInitializationException, NoSuchAlgorithmException, URISyntaxException, ParseException, DataSealerException, com.nimbusds.oauth2.sdk.ParseExceptionTest PKCE with default challenge method.- Throws:
ComponentInitializationExceptionNoSuchAlgorithmExceptionURISyntaxExceptionParseExceptionDataSealerExceptioncom.nimbusds.oauth2.sdk.ParseException
-
testSuccessPKCEDefault
public void testSuccessPKCEDefault() throws ComponentInitializationException, NoSuchAlgorithmException, URISyntaxException, ParseException, DataSealerException, com.nimbusds.oauth2.sdk.ParseExceptionTest PKCE with default challenge method.- Throws:
ComponentInitializationExceptionNoSuchAlgorithmExceptionURISyntaxExceptionParseExceptionDataSealerExceptioncom.nimbusds.oauth2.sdk.ParseException
-
testFailNoRPCtx
public void testFailNoRPCtx() throws NoSuchAlgorithmException, ComponentInitializationException, URISyntaxExceptionfails as there is no rp ctx.
-
testFailNoSubjectCtx
public void testFailNoSubjectCtx() throws NoSuchAlgorithmException, ComponentInitializationException, URISyntaxExceptionfails as there is no subject ctx.
-
testFailNoProfileConf
public void testFailNoProfileConf() throws NoSuchAlgorithmException, ComponentInitializationException, URISyntaxExceptionfails as there is no profile conf.
-
-