Class AddTokenDeliveryAttributesToClaimsSetTest
- 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.AddTokenDeliveryAttributesToClaimsSetTest
-
public class AddTokenDeliveryAttributesToClaimsSetTest extends BaseOIDCResponseActionTest
AddTokenDeliveryAttributesToClaimsSetunit 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.AddTokenDeliveryAttributesToClaimsSetactionprivate OIDCAuthenticationResponseTokenClaimsContexttokenClaimsCtx-
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 AddTokenDeliveryAttributesToClaimsSetTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidinit()voidtestIdTokenDeliveryAttributes()Test action with id token mode.voidtestNoIdToken()Test that action copes with no id token in response context.voidtestNoTokenDeliveryAttributes()Test action with not claims set.voidtestNoTokenDeliveryAttributes2()Test action with no items in token delivery context.voidtestUserInfoDeliveryAttributes()Test action with userinfo mode.-
Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.BaseOIDCResponseActionTest
addEntryToMap, getDataSealer, initializeDataSealer, setAuthenticationRequest, setIdTokenToResponseContext, setTokenRequest, setUp, setUserInfoRequest, setUserInfoResponseToResponseContext, signIdTokenInResponseContext, signUserInfoResponseInResponseContext
-
-
-
-
Field Detail
-
action
private net.shibboleth.idp.plugin.oidc.op.profile.impl.AddTokenDeliveryAttributesToClaimsSet action
-
tokenClaimsCtx
private OIDCAuthenticationResponseTokenClaimsContext tokenClaimsCtx
-
-
Method Detail
-
init
@BeforeMethod private void init() throws ComponentInitializationException
- Throws:
ComponentInitializationException
-
testNoIdToken
public void testNoIdToken() throws ComponentInitializationException, com.nimbusds.oauth2.sdk.ParseExceptionTest that action copes with no id token in response context.- Throws:
ComponentInitializationExceptioncom.nimbusds.oauth2.sdk.ParseException
-
testNoTokenDeliveryAttributes
public void testNoTokenDeliveryAttributes() throws ComponentInitializationException, com.nimbusds.oauth2.sdk.ParseExceptionTest action with not claims set.- Throws:
ComponentInitializationExceptioncom.nimbusds.oauth2.sdk.ParseException
-
testNoTokenDeliveryAttributes2
public void testNoTokenDeliveryAttributes2() throws ComponentInitializationException, com.nimbusds.oauth2.sdk.ParseExceptionTest action with no items in token delivery context.- Throws:
ComponentInitializationExceptioncom.nimbusds.oauth2.sdk.ParseException
-
testIdTokenDeliveryAttributes
public void testIdTokenDeliveryAttributes() throws ComponentInitializationException, com.nimbusds.oauth2.sdk.ParseExceptionTest action with id token mode.- Throws:
ComponentInitializationExceptioncom.nimbusds.oauth2.sdk.ParseException
-
testUserInfoDeliveryAttributes
public void testUserInfoDeliveryAttributes() throws ComponentInitializationException, com.nimbusds.oauth2.sdk.ParseExceptionTest action with userinfo mode.- Throws:
ComponentInitializationExceptioncom.nimbusds.oauth2.sdk.ParseException
-
-