Class DefaultUserInfoResponseDecoderTest
- java.lang.Object
-
- net.shibboleth.idp.plugin.authn.oidc.rp.impl.AbstractOIDCTest
-
- net.shibboleth.idp.plugin.authn.oidc.rp.decoding.impl.DefaultUserInfoResponseDecoderTest
-
public class DefaultUserInfoResponseDecoderTest extends AbstractOIDCTest
Tests for theDefaultUserInfoResponseDecoder.
-
-
Field Summary
Fields Modifier and Type Field Description private net.shibboleth.idp.plugin.authn.oidc.rp.decoding.impl.DefaultUserInfoResponseDecoderdecoderThe decoder to test.-
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 DefaultUserInfoResponseDecoderTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetup()Setup the various contexts.voidtestEncoder_ErrorResponse()voidtestEncoder_InternalServerErrorResponse()voidtestEncoder_JWEAndJWSResponse_Success()voidtestEncoder_JWSResponse_PlainJSONContentType_Fail()voidtestEncoder_JWSResponse_Success()voidtestEncoder_NoMessageEntity()voidtestEncoder_PlainResponse_JWTContentType_Fail()voidtestEncoder_PlainResponse_Success()voidtestEncoder_UnknownContentType()-
Methods inherited from class net.shibboleth.idp.plugin.authn.oidc.rp.impl.AbstractOIDCTest
convertHttpResponseToJSONObject
-
-
-
-
Method Detail
-
setup
@BeforeMethod public void setup() throws ExceptionDescription copied from class:AbstractOIDCTestSetup the various contexts.- Overrides:
setupin classAbstractOIDCTest- Throws:
Exception- on error
-
testEncoder_InternalServerErrorResponse
public void testEncoder_InternalServerErrorResponse() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
testEncoder_NoMessageEntity
public void testEncoder_NoMessageEntity() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
testEncoder_PlainResponse_Success
public void testEncoder_PlainResponse_Success() throws Exception- Throws:
Exception
-
testEncoder_JWSResponse_PlainJSONContentType_Fail
public void testEncoder_JWSResponse_PlainJSONContentType_Fail() throws Exception- Throws:
Exception
-
testEncoder_PlainResponse_JWTContentType_Fail
public void testEncoder_PlainResponse_JWTContentType_Fail() throws Exception- Throws:
Exception
-
testEncoder_UnknownContentType
public void testEncoder_UnknownContentType() throws Exception- Throws:
Exception
-
testEncoder_JWSResponse_Success
public void testEncoder_JWSResponse_Success() throws Exception- Throws:
Exception
-
testEncoder_ErrorResponse
public void testEncoder_ErrorResponse() throws Exception- Throws:
Exception
-
-