Class SignIDTokenTest
- 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.SignIDTokenTest
-
public class SignIDTokenTest extends BaseOIDCResponseActionTest
SignIDTokenunit 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.SignIDTokenaction(package private) SecurityParametersContextspCtx-
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 SignIDTokenTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidinit(String algo, Credential credential)voidtestNoIdToken()Test that action fails if there is no id tokenvoidtestNoSecCtx()Test that action does nothing if there is no sec ctxvoidtestNoSigningParameters()Test that action does nothing if there is no signing parametersprivate voidtestSuccessMessage(com.nimbusds.jose.JWSVerifier verifier)voidtestSuccessMessageES256()Test that action is able to form success message.voidtestSuccessMessageES384()Test that action is able to form success message.voidtestSuccessMessageES512()Test that action is able to form success message.voidtestSuccessMessageHS256()Test that action is able to form success message.voidtestSuccessMessageHS384()Test that action is able to form success message.voidtestSuccessMessageHS512()Test that action is able to form success message.voidtestSuccessMessageRS256()Test that action is able to form success message.voidtestSuccessMessageRS384()Test that action is able to form success message.voidtestSuccessMessageRS512()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
-
-
-
-
Field Detail
-
action
private net.shibboleth.idp.plugin.oidc.op.profile.impl.SignIDToken action
-
spCtx
SecurityParametersContext spCtx
-
-
Method Detail
-
init
private void init(String algo, Credential credential) throws ComponentInitializationException, URISyntaxException
-
testNoSecCtx
public void testNoSecCtx() throws ComponentInitializationExceptionTest that action does nothing if there is no sec ctx- Throws:
ComponentInitializationException
-
testNoSigningParameters
public void testNoSigningParameters() throws ComponentInitializationException, URISyntaxExceptionTest that action does nothing if there is no signing parameters
-
testNoIdToken
public void testNoIdToken() throws ComponentInitializationException, URISyntaxExceptionTest that action fails if there is no id token
-
testSuccessMessage
private void testSuccessMessage(com.nimbusds.jose.JWSVerifier verifier) throws ComponentInitializationException, URISyntaxException, com.nimbusds.jose.JOSEException, com.nimbusds.oauth2.sdk.ParseException- Throws:
ComponentInitializationExceptionURISyntaxExceptioncom.nimbusds.jose.JOSEExceptioncom.nimbusds.oauth2.sdk.ParseException
-
testSuccessMessageRS256
public void testSuccessMessageRS256() throws ComponentInitializationException, URISyntaxException, com.nimbusds.jose.JOSEException, com.nimbusds.oauth2.sdk.ParseExceptionTest that action is able to form success message.- Throws:
ComponentInitializationExceptionURISyntaxExceptioncom.nimbusds.jose.JOSEExceptioncom.nimbusds.oauth2.sdk.ParseException
-
testSuccessMessageRS384
public void testSuccessMessageRS384() throws ComponentInitializationException, URISyntaxException, com.nimbusds.jose.JOSEException, com.nimbusds.oauth2.sdk.ParseExceptionTest that action is able to form success message.- Throws:
ComponentInitializationExceptionURISyntaxExceptioncom.nimbusds.jose.JOSEExceptioncom.nimbusds.oauth2.sdk.ParseException
-
testSuccessMessageRS512
public void testSuccessMessageRS512() throws ComponentInitializationException, URISyntaxException, com.nimbusds.jose.JOSEException, com.nimbusds.oauth2.sdk.ParseExceptionTest that action is able to form success message.- Throws:
ComponentInitializationExceptionURISyntaxExceptioncom.nimbusds.jose.JOSEExceptioncom.nimbusds.oauth2.sdk.ParseException
-
testSuccessMessageES256
public void testSuccessMessageES256() throws ComponentInitializationException, URISyntaxException, com.nimbusds.jose.JOSEException, com.nimbusds.oauth2.sdk.ParseExceptionTest that action is able to form success message.- Throws:
ComponentInitializationExceptionURISyntaxExceptioncom.nimbusds.jose.JOSEExceptioncom.nimbusds.oauth2.sdk.ParseException
-
testSuccessMessageES384
public void testSuccessMessageES384() throws ComponentInitializationException, URISyntaxException, com.nimbusds.jose.JOSEException, com.nimbusds.oauth2.sdk.ParseExceptionTest that action is able to form success message.- Throws:
ComponentInitializationExceptionURISyntaxExceptioncom.nimbusds.jose.JOSEExceptioncom.nimbusds.oauth2.sdk.ParseException
-
testSuccessMessageES512
public void testSuccessMessageES512() throws ComponentInitializationException, URISyntaxException, com.nimbusds.jose.JOSEException, com.nimbusds.oauth2.sdk.ParseExceptionTest that action is able to form success message.- Throws:
ComponentInitializationExceptionURISyntaxExceptioncom.nimbusds.jose.JOSEExceptioncom.nimbusds.oauth2.sdk.ParseException
-
testSuccessMessageHS256
public void testSuccessMessageHS256() throws ComponentInitializationException, URISyntaxException, com.nimbusds.jose.JOSEException, com.nimbusds.oauth2.sdk.ParseExceptionTest that action is able to form success message.- Throws:
ComponentInitializationExceptionURISyntaxExceptioncom.nimbusds.jose.JOSEExceptioncom.nimbusds.oauth2.sdk.ParseException
-
testSuccessMessageHS384
public void testSuccessMessageHS384() throws ComponentInitializationException, URISyntaxException, com.nimbusds.jose.JOSEException, com.nimbusds.oauth2.sdk.ParseExceptionTest that action is able to form success message.- Throws:
ComponentInitializationExceptionURISyntaxExceptioncom.nimbusds.jose.JOSEExceptioncom.nimbusds.oauth2.sdk.ParseException
-
testSuccessMessageHS512
public void testSuccessMessageHS512() throws ComponentInitializationException, URISyntaxException, com.nimbusds.jose.JOSEException, com.nimbusds.oauth2.sdk.ParseExceptionTest that action is able to form success message.- Throws:
ComponentInitializationExceptionURISyntaxExceptioncom.nimbusds.jose.JOSEExceptioncom.nimbusds.oauth2.sdk.ParseException
-
-