Class ValidateOAuthAccessTokenResponseTest
- java.lang.Object
-
- net.shibboleth.idp.plugin.authn.oidc.rp.impl.AbstractOIDCTest
-
- net.shibboleth.idp.plugin.authn.oidc.rp.impl.ValidateOAuthAccessTokenResponseTest
-
public class ValidateOAuthAccessTokenResponseTest extends AbstractOIDCTest
Tests forValidateOAuthAccessTokenResponse.
-
-
Field Summary
Fields Modifier and Type Field Description private net.shibboleth.idp.plugin.authn.oidc.rp.impl.ValidateOAuthAccessTokenResponseactionThe action to test.private net.shibboleth.idp.plugin.authn.oidc.rp.context.AccessTokenResponseContextatrcprivate com.nimbusds.jwt.JWTClaimsSetclaimsSetprivate org.apache.http.HttpResponsehttpResponseprivate com.nimbusds.openid.connect.sdk.OIDCTokenResponsetokenResponseprivate com.nimbusds.openid.connect.sdk.token.OIDCTokenstokens-
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 ValidateOAuthAccessTokenResponseTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetup()Setup the various contexts.voidtestError_ErrorResponse()Fake an error response using a successful token response.voidtestError_NoTokenResponse()voidtestError_TokenExpired()voidtestError_WrongTokenType()voidtestSuccesfulTokenResponse()voidtestSuccesfulTokenResponse_NoExpiry()-
Methods inherited from class net.shibboleth.idp.plugin.authn.oidc.rp.impl.AbstractOIDCTest
convertHttpResponseToJSONObject
-
-
-
-
Field Detail
-
action
private net.shibboleth.idp.plugin.authn.oidc.rp.impl.ValidateOAuthAccessTokenResponse action
The action to test.
-
httpResponse
private org.apache.http.HttpResponse httpResponse
-
atrc
private net.shibboleth.idp.plugin.authn.oidc.rp.context.AccessTokenResponseContext atrc
-
tokenResponse
private com.nimbusds.openid.connect.sdk.OIDCTokenResponse tokenResponse
-
tokens
private com.nimbusds.openid.connect.sdk.token.OIDCTokens tokens
-
claimsSet
private com.nimbusds.jwt.JWTClaimsSet claimsSet
-
-
Method Detail
-
setup
@BeforeMethod public void setup() throws ExceptionDescription copied from class:AbstractOIDCTestSetup the various contexts.- Overrides:
setupin classAbstractOIDCTest- Throws:
Exception- on error
-
testSuccesfulTokenResponse
public void testSuccesfulTokenResponse() throws Exception- Throws:
Exception
-
testSuccesfulTokenResponse_NoExpiry
public void testSuccesfulTokenResponse_NoExpiry() throws Exception- Throws:
Exception
-
testError_NoTokenResponse
public void testError_NoTokenResponse() throws Exception- Throws:
Exception
-
-