Class ClientInformationJWTTrustEngineTest


  • public class ClientInformationJWTTrustEngineTest
    extends Object
    Tests for the ClientInformationJWTTrustEngine.
    • Field Detail

      • engine

        private net.shibboleth.oidc.security.impl.ClientInformationJWTTrustEngine engine
      • key

        private com.nimbusds.jose.jwk.ECKey key
    • Constructor Detail

      • ClientInformationJWTTrustEngineTest

        public ClientInformationJWTTrustEngineTest()
    • Method Detail

      • setup

        @BeforeMethod
        public void setup()
                   throws com.nimbusds.jose.JOSEException
        Throws:
        com.nimbusds.jose.JOSEException
      • setup

        public void setup​(String defaultAlgValue)
                   throws com.nimbusds.jose.JOSEException
        Throws:
        com.nimbusds.jose.JOSEException
      • setup

        public void setup​(String defaultAlgValue,
                          Function<com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation,​String> sigAlgLookup)
                   throws com.nimbusds.jose.JOSEException
        Throws:
        com.nimbusds.jose.JOSEException
      • setupSymmetric

        public void setupSymmetric​(String defaultAlgValue,
                                   Function<com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation,​String> sigAlgLookup)
      • testValid_WithTrustedCredential_NoValueNorDefault

        public void testValid_WithTrustedCredential_NoValueNorDefault()
                                                               throws com.nimbusds.jose.JOSEException,
                                                                      SecurityException
        Throws:
        com.nimbusds.jose.JOSEException
        SecurityException
      • testValid_WithTrustedCredential_NoValueDefaultMatch

        public void testValid_WithTrustedCredential_NoValueDefaultMatch()
                                                                 throws com.nimbusds.jose.JOSEException,
                                                                        SecurityException
        Throws:
        com.nimbusds.jose.JOSEException
        SecurityException
      • testValid_WithTrustedCredential_NoValueDefaultNotMatching

        public void testValid_WithTrustedCredential_NoValueDefaultNotMatching()
                                                                       throws com.nimbusds.jose.JOSEException,
                                                                              SecurityException
        Throws:
        com.nimbusds.jose.JOSEException
        SecurityException
      • testValid_WithTrustedCredential_ValueMatch

        public void testValid_WithTrustedCredential_ValueMatch()
                                                        throws com.nimbusds.jose.JOSEException,
                                                               SecurityException
        Throws:
        com.nimbusds.jose.JOSEException
        SecurityException
      • testValid_WithTrustedCredential_ValueNotMatching

        public void testValid_WithTrustedCredential_ValueNotMatching()
                                                              throws com.nimbusds.jose.JOSEException,
                                                                     SecurityException
        Throws:
        com.nimbusds.jose.JOSEException
        SecurityException
      • testValid_WithSymmetricKeyCredential_NoValueNorDefault

        public void testValid_WithSymmetricKeyCredential_NoValueNorDefault()
                                                                    throws com.nimbusds.jose.JOSEException,
                                                                           SecurityException
        Throws:
        com.nimbusds.jose.JOSEException
        SecurityException
      • testValid_WithSymmetricKeyCredential_NoValueDefaultMatching

        public void testValid_WithSymmetricKeyCredential_NoValueDefaultMatching()
                                                                         throws com.nimbusds.jose.JOSEException,
                                                                                SecurityException
        Throws:
        com.nimbusds.jose.JOSEException
        SecurityException
      • testValid_WithSymmetricKeyCredential_NoValueDefaultNotMatching

        public void testValid_WithSymmetricKeyCredential_NoValueDefaultNotMatching()
                                                                            throws com.nimbusds.jose.JOSEException,
                                                                                   SecurityException
        Throws:
        com.nimbusds.jose.JOSEException
        SecurityException
      • testValid_WithSymmetricKeyCredential_ValueMatch

        public void testValid_WithSymmetricKeyCredential_ValueMatch()
                                                             throws com.nimbusds.jose.JOSEException,
                                                                    SecurityException
        Throws:
        com.nimbusds.jose.JOSEException
        SecurityException
      • testValid_WithSymmetricKeyCredential_ValueNotNatching

        public void testValid_WithSymmetricKeyCredential_ValueNotNatching()
                                                                   throws com.nimbusds.jose.JOSEException,
                                                                          SecurityException
        Throws:
        com.nimbusds.jose.JOSEException
        SecurityException
      • testValid_WithInlineJWK

        public void testValid_WithInlineJWK()
                                     throws com.nimbusds.jose.JOSEException,
                                            SecurityException
        Throws:
        com.nimbusds.jose.JOSEException
        SecurityException
      • buildClientInformationCriterion

        protected static net.shibboleth.oidc.security.jose.criterion.ClientInformationCriterion buildClientInformationCriterion()