Class ValidateOAuthAccessTokenResponseTest


  • public class ValidateOAuthAccessTokenResponseTest
    extends AbstractOIDCTest
    Tests for ValidateOAuthAccessTokenResponse.
    • 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
    • Constructor Detail

      • ValidateOAuthAccessTokenResponseTest

        public ValidateOAuthAccessTokenResponseTest()
    • Method Detail

      • 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
      • testError_WrongTokenType

        public void testError_WrongTokenType()
                                      throws Exception
        Throws:
        Exception
      • testError_TokenExpired

        public void testError_TokenExpired()
                                    throws Exception
        Throws:
        Exception
      • testError_ErrorResponse

        public void testError_ErrorResponse()
                                     throws Exception
        Fake an error response using a successful token response. Otherwise we can not set the wrong type on the context.
        Throws:
        Exception - on error