Class CertChainX509DataTest


  • public class CertChainX509DataTest
    extends org.opensaml.core.xml.XMLObjectBaseTestCase
    Test resolution of credentials from X509Data child of KeyInfo, where the X509Data contains various identifiers for the entity cert within a cert chain.
    • Constructor Detail

      • CertChainX509DataTest

        public CertChainX509DataTest()
    • Method Detail

      • evalCredential

        protected void evalCredential​(org.opensaml.security.credential.Credential credential)
      • testResolutionWithKeyValue

        public void testResolutionWithKeyValue()
                                        throws org.opensaml.security.SecurityException,
                                               net.shibboleth.utilities.java.support.resolver.ResolverException
        Test resolution with multiple certs, end-entity cert identified by KeyValue.
        Throws:
        org.opensaml.security.SecurityException - on error resolving credentials
        net.shibboleth.utilities.java.support.resolver.ResolverException - on error resolving credentials
      • testResolutionWithSubjectName

        public void testResolutionWithSubjectName()
                                           throws org.opensaml.security.SecurityException,
                                                  net.shibboleth.utilities.java.support.resolver.ResolverException
        Test resolution with multiple certs, end-entity cert identified by X509SubjectName.
        Throws:
        org.opensaml.security.SecurityException - on error resolving credentials
        net.shibboleth.utilities.java.support.resolver.ResolverException - on error resolving credentials
      • testResolutionWithIssuerSerial

        public void testResolutionWithIssuerSerial()
                                            throws org.opensaml.security.SecurityException,
                                                   net.shibboleth.utilities.java.support.resolver.ResolverException
        Test resolution with multiple certs, end-entity cert identified by X509IssuerSerial.
        Throws:
        org.opensaml.security.SecurityException - on error resolving credentials
        net.shibboleth.utilities.java.support.resolver.ResolverException - on error resolving credentials
      • testResolutionWithSubjectKeyIdentifier

        public void testResolutionWithSubjectKeyIdentifier()
                                                    throws org.opensaml.security.SecurityException,
                                                           net.shibboleth.utilities.java.support.resolver.ResolverException
        Test resolution with multiple certs, end-entity cert identified by X509SKI.
        Throws:
        org.opensaml.security.SecurityException - on error resolving credentials
        net.shibboleth.utilities.java.support.resolver.ResolverException - on error resolving credentials
      • testResolutionWithDigest

        public void testResolutionWithDigest()
                                      throws org.opensaml.security.SecurityException,
                                             net.shibboleth.utilities.java.support.resolver.ResolverException
        Test resolution with multiple certs, end-entity cert identified by X509Digest.
        Throws:
        org.opensaml.security.SecurityException - on error resolving credentials
        net.shibboleth.utilities.java.support.resolver.ResolverException - on error resolving credentials