Class SetRequestedSubjectToResponseContextTest
- 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.SetRequestedSubjectToResponseContextTest
-
public class SetRequestedSubjectToResponseContextTest extends BaseOIDCResponseActionTest
SetRequestedSubjectToResponseContextunit 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.SetRequestedSubjectToResponseContextaction-
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 SetRequestedSubjectToResponseContextTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidinit()voidtestClaimsRequest()Test subject carried in claims request is set to response ctx.voidtestIdTokenHint()Test subject carried in id token hint is set to response ctx.voidtestMixed()Test subject carried in claims request is set to response ctx in the sub is set to both claims request and id token hint.voidtestNoReqSubject()Test action handles not having requested subject correctly.-
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- Throws:
ComponentInitializationException
-
testNoReqSubject
public void testNoReqSubject() throws ComponentInitializationExceptionTest action handles not having requested subject correctly.- Throws:
ComponentInitializationException
-
testIdTokenHint
public void testIdTokenHint() throws ComponentInitializationExceptionTest subject carried in id token hint is set to response ctx.- Throws:
ComponentInitializationException
-
testClaimsRequest
public void testClaimsRequest() throws ComponentInitializationExceptionTest subject carried in claims request is set to response ctx.- Throws:
ComponentInitializationException
-
testMixed
public void testMixed() throws ComponentInitializationExceptionTest subject carried in claims request is set to response ctx in the sub is set to both claims request and id token hint.- Throws:
ComponentInitializationException
-
-