Class IssueRegistrationAccessTokenFlowTest

    • Constructor Detail

      • IssueRegistrationAccessTokenFlowTest

        public IssueRegistrationAccessTokenFlowTest()
        Constructor.
    • Method Detail

      • testWithNoParameters

        public void testWithNoParameters()
                                  throws Exception
        Test the flow without any parameters.
        Throws:
        Exception - if an error occurs
      • testWithInvalidLocation

        public void testWithInvalidLocation()
                                     throws Exception
        Test the flow with invalid metadata location in the parameters.
        Throws:
        Exception - if an error occurs
      • testWithValidPolicyLocationAndId

        public void testWithValidPolicyLocationAndId()
                                              throws Exception
        Test the flow with both policy ID and policy location in the parameters.
        Throws:
        Exception - if an error occurs
      • testWithPolicyLocationOnly

        public void testWithPolicyLocationOnly()
                                        throws Exception
        Test the flow with both policy location in the parameters, without policy ID.
        Throws:
        Exception - if an error occurs
      • testWithPolicyIdOnly

        public void testWithPolicyIdOnly()
                                  throws Exception
        Test the flow with policy ID in the parameters, without policy location.
        Throws:
        Exception - if an error occurs
      • testWithPolicyIdClientId

        public void testWithPolicyIdClientId()
                                      throws Exception
        Test the flow with policy ID in the parameters, without policy location. Client ID is set.
        Throws:
        Exception - if an error occurs
      • testWithPolicyIdReplacementIgnoredWithoutClientId

        public void testWithPolicyIdReplacementIgnoredWithoutClientId()
                                                               throws Exception
        Test the flow with policy ID in the parameters, without policy location. Client ID is not set so replacement should be null even when set in the request.
        Throws:
        Exception - if an error occurs
      • testWithPolicyIdReplacemenSetWithClientId

        public void testWithPolicyIdReplacemenSetWithClientId()
                                                       throws Exception
        Test the flow with policy ID in the parameters, without policy location. Client ID is set so replacement can be set too.
        Throws:
        Exception - if an error occurs
      • buildMetadataPolicy1

        private Map<String,​net.shibboleth.oidc.metadata.policy.MetadataPolicy> buildMetadataPolicy1()
      • assertErrorResponse

        private void assertErrorResponse​(int status,
                                         String title)
                                  throws UnsupportedEncodingException,
                                         com.fasterxml.jackson.databind.JsonMappingException,
                                         com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        UnsupportedEncodingException
        com.fasterxml.jackson.databind.JsonMappingException
        com.fasterxml.jackson.core.JsonProcessingException