Class FormOutboundTokenResponseMessageTest
- 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.FormOutboundTokenResponseMessageTest
-
public class FormOutboundTokenResponseMessageTest extends BaseOIDCResponseActionTest
FormOutboundTokenResponseMessageunit 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.FormOutboundTokenResponseMessageactionAction 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 FormOutboundTokenResponseMessageTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()Init method.voidtestFailNoAccessToken()Test that action fails if there is no access token.voidtestOAuthSuccess()Test that action fails if there is no id token.voidtestOIDCSuccess()Test that action is able to form success message.-
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
@BeforeMethod public void init() throws ComponentInitializationException, URISyntaxException, com.nimbusds.oauth2.sdk.ParseException, com.nimbusds.jose.JOSEException
Init method.- Throws:
ComponentInitializationExceptionURISyntaxExceptioncom.nimbusds.oauth2.sdk.ParseExceptioncom.nimbusds.jose.JOSEException
-
testOIDCSuccess
public void testOIDCSuccess() throws ComponentInitializationException, URISyntaxException, com.nimbusds.oauth2.sdk.ParseException, com.nimbusds.jose.JOSEExceptionTest that action is able to form success message.- Throws:
ComponentInitializationExceptionURISyntaxExceptioncom.nimbusds.oauth2.sdk.ParseExceptioncom.nimbusds.jose.JOSEException
-
testOAuthSuccess
public void testOAuthSuccess() throws ComponentInitializationException, URISyntaxException, com.nimbusds.oauth2.sdk.ParseException, com.nimbusds.jose.JOSEExceptionTest that action fails if there is no id token.- Throws:
ComponentInitializationExceptionURISyntaxExceptioncom.nimbusds.oauth2.sdk.ParseExceptioncom.nimbusds.jose.JOSEException
-
testFailNoAccessToken
public void testFailNoAccessToken() throws ComponentInitializationException, URISyntaxException, com.nimbusds.oauth2.sdk.ParseException, com.nimbusds.jose.JOSEExceptionTest that action fails if there is no access token.- Throws:
ComponentInitializationExceptionURISyntaxExceptioncom.nimbusds.oauth2.sdk.ParseExceptioncom.nimbusds.jose.JOSEException
-
-