Class KeySetFlowTest
- java.lang.Object
-
- org.springframework.test.context.testng.AbstractTestNGSpringContextTests
-
- net.shibboleth.idp.test.flows.AbstractFlowTest
-
- net.shibboleth.idp.plugin.oidc.op.profile.flow.AbstractOidcFlowTest
-
- net.shibboleth.idp.plugin.oidc.op.profile.flow.KeySetFlowTest
-
- All Implemented Interfaces:
Aware,ApplicationContextAware,IHookable,ITestNGListener
public class KeySetFlowTest extends AbstractOidcFlowTest
Unit tests for the OIDC keyset flow.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ResourceecSigKeystatic StringFLOW_ID(package private) ResourcersaEncKey(package private) ResourcersaSigKey-
Fields inherited from class net.shibboleth.idp.plugin.oidc.op.profile.flow.AbstractOidcFlowTest
END_STATE_ID
-
Fields inherited from class net.shibboleth.idp.test.flows.AbstractFlowTest
builderFactory, certFactoryBean, directoryServer, END_STATE_OUTPUT_ATTR_EXPR, END_STATE_OUTPUT_ATTR_NAME, externalContext, flowExecutor, idGenerator, IDP_ENTITY_ID, idpCredential, IP_ADDRESS_AUTHN_FLOW_ID, IP_ADDRESS_AUTHN_MAP_BEAN_NAME, KEYSTORE_FILE, LDIF_FILE, marshallerFactory, parserPool, request, response, SAML1_TRANSFORM_C14N_BEAN_NAME, SAML2_TRANSFORM_C14N_BEAN_NAME, SP_ACS_URL, SP_ENTITY_ID, SP_RELAY_STATE, spCredential, unmarshallerFactory
-
Fields inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
applicationContext, logger
-
-
Constructor Summary
Constructors Constructor Description KeySetFlowTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanjsonValueEquals(com.nimbusds.jose.jwk.JWK first, com.nimbusds.jose.jwk.JWK another, String key)protected booleanlistContainsPublicJwk(List<com.nimbusds.jose.jwk.JWK> list, com.nimbusds.jose.jwk.JWK jwk)voidtest()-
Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.flow.AbstractOidcFlowTest
assertErrorCode, assertErrorDescriptionContains, buildJsonForLegacyToken, createPrivateKeyJWT, createSecretJWT, getDataSealer, initializeMocks, initializeThreadLocals, parseErrorResponse, parseResponse, parseSuccessResponse, removeMetadata, setBasicAuth, setHttpFormRequest, setJsonRequest, setRequest, storeConsent, storeMetadata, storeMetadata, storeMetadata, storeMetadata, storeMetadata
-
Methods inherited from class net.shibboleth.idp.test.flows.AbstractFlowTest
assertFlowExecutionOutcome, assertFlowExecutionOutcome, assertFlowExecutionResult, assertProfileRequestContext, buildSOAP11Envelope, clearThreadLocals, getFlow, initializeFlowExecutor, initializeXMLObjectSupport, overrideEndStateOutput, overrideEndStateOutput, registerFlowsInParentRegistry, retrieveProfileRequestContext, setupDirectoryServer, teardownDirectoryServer
-
Methods inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
run, setApplicationContext, springTestContextAfterTestClass, springTestContextAfterTestMethod, springTestContextBeforeTestClass, springTestContextBeforeTestMethod, springTestContextPrepareTestInstance
-
-
-
-
Field Detail
-
FLOW_ID
public static final String FLOW_ID
- See Also:
- Constant Field Values
-
rsaSigKey
Resource rsaSigKey
-
rsaEncKey
Resource rsaEncKey
-
ecSigKey
Resource ecSigKey
-
-
Method Detail
-
test
public void test() throws com.nimbusds.oauth2.sdk.ParseException, IOException, ParseException- Throws:
com.nimbusds.oauth2.sdk.ParseExceptionIOException
-
listContainsPublicJwk
protected boolean listContainsPublicJwk(List<com.nimbusds.jose.jwk.JWK> list, com.nimbusds.jose.jwk.JWK jwk)
-
jsonValueEquals
protected boolean jsonValueEquals(com.nimbusds.jose.jwk.JWK first, com.nimbusds.jose.jwk.JWK another, String key)
-
-