Class ValidateRedirectURITest
- 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.ValidateRedirectURITest
-
public class ValidateRedirectURITest extends BaseOIDCResponseActionTest
ValidateRedirectURIunit 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.ValidateRedirectURIactionprivate StringrequestUri-
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 ValidateRedirectURITest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidinit()private voidinit(boolean requireRequestedValue, URI requestedUri, Set<URI> validUris, Set<URI> registeredUris)voidtestMatch()Test case of having a match for redirect uri.voidtestNoCtx()Test that action copes with no OIDC metadata context.voidtestNoMatch()Test case of not having matching redirect uri.voidtestNullRequesAllowed()voidtestNullRequesAllowedNoRegisteredUris()voidtestNullRequesAllowedNotSingleRegisteredUri()voidtestNullRequesAllowedNotSingleValidUri()voidtestNullRequesNotAllowed()-
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.ValidateRedirectURI action
-
requestUri
private String requestUri
-
-
Method Detail
-
init
private void init() throws ComponentInitializationException, URISyntaxException
-
init
private void init(boolean requireRequestedValue, URI requestedUri, Set<URI> validUris, Set<URI> registeredUris) throws ComponentInitializationException- Throws:
ComponentInitializationException
-
testNoCtx
public void testNoCtx() throws ComponentInitializationException, URISyntaxExceptionTest that action copes with no OIDC metadata context.
-
testNoMatch
public void testNoMatch() throws ComponentInitializationException, URISyntaxExceptionTest case of not having matching redirect uri.
-
testMatch
public void testMatch() throws ComponentInitializationException, URISyntaxExceptionTest case of having a match for redirect uri.
-
testNullRequesNotAllowed
public void testNullRequesNotAllowed() throws ComponentInitializationException, URISyntaxException
-
testNullRequesAllowedNotSingleValidUri
public void testNullRequesAllowedNotSingleValidUri() throws ComponentInitializationException, URISyntaxException
-
testNullRequesAllowedNotSingleRegisteredUri
public void testNullRequesAllowedNotSingleRegisteredUri() throws ComponentInitializationException, URISyntaxException
-
testNullRequesAllowedNoRegisteredUris
public void testNullRequesAllowedNoRegisteredUris() throws ComponentInitializationException, URISyntaxException
-
testNullRequesAllowed
public void testNullRequesAllowed() throws ComponentInitializationException, URISyntaxException
-
-