Class AddAttributesToClaimsSetTest
- 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.AddAttributesToClaimsSetTest
-
public class AddAttributesToClaimsSetTest extends BaseOIDCResponseActionTest
AddAttributesToClaimsSetunit 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.AddAttributesToClaimsSetactionprivate net.shibboleth.idp.attribute.transcoding.impl.AttributeTranscoderRegistryImplregistry-
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 AddAttributesToClaimsSetTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidsetAttributeContext()voidsetup()voidtearDown()voidtestNoAttributeCtx()Test that action copes with no attribute context.voidtestNoIdToken()Test that action copes with no id token in response context.voidtestSuccessConsent()Success case with consent information.voidtestSuccessNoConsent()Success case without consent information.voidtestSuccessNoConsentWithTest2Request()Success case without consent information.-
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
-
setup
@BeforeMethod public void setup() throws ComponentInitializationException
- Throws:
ComponentInitializationException
-
tearDown
@AfterMethod public void tearDown()
-
setAttributeContext
private void setAttributeContext()
-
testNoAttributeCtx
public void testNoAttributeCtx() throws ComponentInitializationExceptionTest that action copes with no attribute context. Action should just move forward without action taken.- 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
-
testSuccessNoConsent
public void testSuccessNoConsent() throws ComponentInitializationException, com.nimbusds.oauth2.sdk.ParseExceptionSuccess case without consent information.- Throws:
ComponentInitializationExceptioncom.nimbusds.oauth2.sdk.ParseException
-
testSuccessNoConsentWithTest2Request
public void testSuccessNoConsentWithTest2Request() throws ComponentInitializationException, com.nimbusds.oauth2.sdk.ParseExceptionSuccess case without consent information. Claim 'test2' is requested and thus must be included in the id_token.- Throws:
ComponentInitializationExceptioncom.nimbusds.oauth2.sdk.ParseException
-
testSuccessConsent
public void testSuccessConsent() throws ComponentInitializationException, com.nimbusds.oauth2.sdk.ParseExceptionSuccess case with consent information.- Throws:
ComponentInitializationExceptioncom.nimbusds.oauth2.sdk.ParseException
-
-