Class TruststoreHelper.ExtendedKeyUsageChecker

  • All Implemented Interfaces:
    java.lang.Cloneable, java.security.cert.CertPathChecker
    Enclosing class:
    TruststoreHelper

    public static class TruststoreHelper.ExtendedKeyUsageChecker
    extends java.security.cert.PKIXCertPathChecker
    Special class for handling certificate validation of chains that contains critical extended key usage. This implementation accepts all extended key usages if marked as critical.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void check​(java.security.cert.Certificate cert, java.util.Collection<java.lang.String> unresolvedCritExts)  
      java.util.Set<java.lang.String> getSupportedExtensions()  
      void init​(boolean forward)  
      boolean isForwardCheckingSupported()  
      • Methods inherited from class java.security.cert.PKIXCertPathChecker

        check, clone
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExtendedKeyUsageChecker

        public ExtendedKeyUsageChecker()
    • Method Detail

      • init

        public void init​(boolean forward)
                  throws java.security.cert.CertPathValidatorException
        Specified by:
        init in interface java.security.cert.CertPathChecker
        Specified by:
        init in class java.security.cert.PKIXCertPathChecker
        Throws:
        java.security.cert.CertPathValidatorException
      • isForwardCheckingSupported

        public boolean isForwardCheckingSupported()
        Specified by:
        isForwardCheckingSupported in interface java.security.cert.CertPathChecker
        Specified by:
        isForwardCheckingSupported in class java.security.cert.PKIXCertPathChecker
      • getSupportedExtensions

        public java.util.Set<java.lang.String> getSupportedExtensions()
        Specified by:
        getSupportedExtensions in class java.security.cert.PKIXCertPathChecker
      • check

        public void check​(java.security.cert.Certificate cert,
                          java.util.Collection<java.lang.String> unresolvedCritExts)
                   throws java.security.cert.CertPathValidatorException
        Specified by:
        check in class java.security.cert.PKIXCertPathChecker
        Throws:
        java.security.cert.CertPathValidatorException