Class ValidateGrantTypeTest
- 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.ValidateGrantTypeTest
-
public class ValidateGrantTypeTest extends BaseOIDCResponseActionTest
ValidateGrantTypeunit 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.ValidateGrantTypeactionAction to test.private com.nimbusds.openid.connect.sdk.rp.OIDCClientMetadatametaDataMetadata.-
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 ValidateGrantTypeTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()Set up method.voidtestFailure()Test that action rejects the "refresh_token" grant type.voidtestFailureNoMetadata()Test that action accepts the "refresh_token" grant type based on profile config.voidtestSuccess()Test that action accepts the "refresh_token" grant type.voidtestSuccessNoMetadata()Test that action accepts the "refresh_token" grant type based on profile config.-
Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.BaseOIDCResponseActionTest
addEntryToMap, getDataSealer, initializeDataSealer, setAuthenticationRequest, setIdTokenToResponseContext, setTokenRequest, setUserInfoRequest, setUserInfoResponseToResponseContext, signIdTokenInResponseContext, signUserInfoResponseInResponseContext
-
-
-
-
Method Detail
-
setUp
@BeforeMethod protected void setUp() throws Exception
Set up method.- Overrides:
setUpin classBaseOIDCResponseActionTest- Throws:
Exception
-
testSuccess
public void testSuccess()
Test that action accepts the "refresh_token" grant type.
-
testSuccessNoMetadata
public void testSuccessNoMetadata()
Test that action accepts the "refresh_token" grant type based on profile config.
-
testFailureNoMetadata
public void testFailureNoMetadata()
Test that action accepts the "refresh_token" grant type based on profile config.
-
testFailure
public void testFailure() throws com.nimbusds.oauth2.sdk.ParseExceptionTest that action rejects the "refresh_token" grant type.- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
-