Class AddAccessTokenHashToIDTokenTest
- 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.AddAccessTokenHashToIDTokenTest
-
public class AddAccessTokenHashToIDTokenTest extends BaseOIDCResponseActionTest
AddAccessTokenHashToIDTokenunit 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.AddAccessTokenHashToIDTokenaction(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 AddAccessTokenHashToIDTokenTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidinit(String algo, Credential credential)voidtestNoAccessToken()Test that action copes with no access token in response context.voidtestNoIdToken()Test that action copes with no id token in response context.voidtestSuccess()Test that action hash is produced to id token.-
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.AddAccessTokenHashToIDToken action
-
spCtx
SecurityParametersContext spCtx
-
-
Method Detail
-
init
private void init(String algo, Credential credential) throws ComponentInitializationException, URISyntaxException
-
testNoIdToken
public void testNoIdToken() throws ComponentInitializationException, com.nimbusds.oauth2.sdk.ParseException, URISyntaxExceptionTest that action copes with no id token in response context.- Throws:
ComponentInitializationExceptioncom.nimbusds.oauth2.sdk.ParseExceptionURISyntaxException
-
testNoAccessToken
public void testNoAccessToken() throws ComponentInitializationException, com.nimbusds.oauth2.sdk.ParseException, URISyntaxExceptionTest that action copes with no access token in response context.- Throws:
ComponentInitializationExceptioncom.nimbusds.oauth2.sdk.ParseExceptionURISyntaxException
-
testSuccess
public void testSuccess() throws ComponentInitializationException, com.nimbusds.oauth2.sdk.ParseException, URISyntaxExceptionTest that action hash is produced to id token.- Throws:
ComponentInitializationExceptioncom.nimbusds.oauth2.sdk.ParseExceptionURISyntaxException
-
-