Class SignUserInfoResponseTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- net.shibboleth.idp.plugin.oidc.op.profile.impl.BaseOIDCResponseActionTest
-
- net.shibboleth.idp.plugin.oidc.op.userinfo.profile.impl.SignUserInfoResponseTest
-
public class SignUserInfoResponseTest extends BaseOIDCResponseActionTest
SignUserInfoResponseunit 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.userinfo.profile.impl.SignUserInfoResponseaction(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 SignUserInfoResponseTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidinit(String algo, Credential credential)voidtestNoCredential()Test that action does nothing if there is no sufficient underlying contexts or not requested.voidtestNoCtxt()Test that action does nothing if there is no sufficient underlying contexts or not requested.voidtestNoParameters()Test that action does nothing if there is no sufficient underlying contexts or not requested.voidtestNotInstructed()Test that action does nothing if there is no sufficient underlying contexts or not requested.voidtestNoUserInfo()Test that action fails if there is no user infoprivate 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.userinfo.profile.impl.SignUserInfoResponse action
-
spCtx
SecurityParametersContext spCtx
-
-
Method Detail
-
init
private void init(String algo, Credential credential) throws ComponentInitializationException, URISyntaxException
-
testNoCredential
public void testNoCredential() throws ComponentInitializationException, URISyntaxExceptionTest that action does nothing if there is no sufficient underlying contexts or not requested.
-
testNoParameters
public void testNoParameters() throws ComponentInitializationException, URISyntaxExceptionTest that action does nothing if there is no sufficient underlying contexts or not requested.
-
testNoCtxt
public void testNoCtxt() throws ComponentInitializationException, URISyntaxExceptionTest that action does nothing if there is no sufficient underlying contexts or not requested.
-
testNotInstructed
public void testNotInstructed() throws ComponentInitializationException, URISyntaxExceptionTest that action does nothing if there is no sufficient underlying contexts or not requested.
-
testNoUserInfo
public void testNoUserInfo() throws ComponentInitializationException, URISyntaxExceptionTest that action fails if there is no user info
-
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
-
-