Class BuildPlainRequestObjectJWTTest
- java.lang.Object
-
- net.shibboleth.idp.plugin.authn.oidc.rp.impl.AbstractOIDCTest
-
- net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.BuildPlainRequestObjectJWTTest
-
public class BuildPlainRequestObjectJWTTest extends AbstractOIDCTest
Tests forBuildPlainRequestObjectJWT.
-
-
Field Summary
Fields Modifier and Type Field Description private net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.BuildPlainRequestObjectJWThandlerThe message handler to test.private net.shibboleth.idp.plugin.authn.oidc.rp.context.OutboundMessageHandlerContexthandlerContextThe outbound handler context.private net.shibboleth.oidc.profile.core.OIDCAuthenticationRequestrequestThe authn request.private static StringSWF_KEYThe SWF key.-
Fields inherited from class net.shibboleth.idp.plugin.authn.oidc.rp.impl.AbstractOIDCTest
ac, ACCESS_TOKEN_RESPONSE, ACCESS_TOKEN_RESPONSE_NO_ACCESSTOKEN, ACCESS_TOKEN_RESPONSE_NO_IDTOKEN, authnRequest, CLIENT_METADATA, GOOD_PROVIDER_CONFIGURATION_INFO, partyConfig, peerEntityCtx, prc, providerCtx, rootPrc, src, TOKEN_RESPONSE_ERROR, USERINFO_RESPONSE, USERINFO_RESPONSE_JWE, USERINFO_RESPONSE_JWS
-
-
Constructor Summary
Constructors Constructor Description BuildPlainRequestObjectJWTTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetup()Setup the various contexts.voidtestFail_NoClaims()Test what happens if no request object claims are set in the authentication request.voidtestSuccess()Test a plain request object and default claims are added.-
Methods inherited from class net.shibboleth.idp.plugin.authn.oidc.rp.impl.AbstractOIDCTest
convertHttpResponseToJSONObject
-
-
-
-
Field Detail
-
SWF_KEY
private static final String SWF_KEY
The SWF key.- See Also:
- Constant Field Values
-
handler
private net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.BuildPlainRequestObjectJWT handler
The message handler to test.
-
request
private net.shibboleth.oidc.profile.core.OIDCAuthenticationRequest request
The authn request.
-
handlerContext
private net.shibboleth.idp.plugin.authn.oidc.rp.context.OutboundMessageHandlerContext handlerContext
The outbound handler context.
-
-
Method Detail
-
setup
@BeforeMethod public void setup() throws ExceptionDescription copied from class:AbstractOIDCTestSetup the various contexts.- Overrides:
setupin classAbstractOIDCTest- Throws:
Exception- on error
-
testSuccess
public void testSuccess() throws ExceptionTest a plain request object and default claims are added.- Throws:
Exception- on error
-
-