Java Code Examples for sun.security.validator.Validator#TYPE_PKIX

The following examples show how to use sun.security.validator.Validator#TYPE_PKIX . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TrustManagerFactoryImpl.java    From dragonwell8_jdk with GNU General Public License v2.0 6 votes vote down vote up
@Override
X509TrustManager getInstance(ManagerFactoryParameters spec)
        throws InvalidAlgorithmParameterException {
    if (spec instanceof CertPathTrustManagerParameters == false) {
        throw new InvalidAlgorithmParameterException
            ("Parameters must be CertPathTrustManagerParameters");
    }
    CertPathParameters params =
        ((CertPathTrustManagerParameters)spec).getParameters();
    if (params instanceof PKIXBuilderParameters == false) {
        throw new InvalidAlgorithmParameterException
            ("Encapsulated parameters must be PKIXBuilderParameters");
    }
    PKIXBuilderParameters pkixParams = (PKIXBuilderParameters)params;
    return new X509TrustManagerImpl(Validator.TYPE_PKIX, pkixParams);
}
 
Example 2
Source File: TrustManagerFactoryImpl.java    From jdk8u_jdk with GNU General Public License v2.0 6 votes vote down vote up
@Override
X509TrustManager getInstance(ManagerFactoryParameters spec)
        throws InvalidAlgorithmParameterException {
    if (spec instanceof CertPathTrustManagerParameters == false) {
        throw new InvalidAlgorithmParameterException
            ("Parameters must be CertPathTrustManagerParameters");
    }
    CertPathParameters params =
        ((CertPathTrustManagerParameters)spec).getParameters();
    if (params instanceof PKIXBuilderParameters == false) {
        throw new InvalidAlgorithmParameterException
            ("Encapsulated parameters must be PKIXBuilderParameters");
    }
    PKIXBuilderParameters pkixParams = (PKIXBuilderParameters)params;
    return new X509TrustManagerImpl(Validator.TYPE_PKIX, pkixParams);
}
 
Example 3
Source File: TrustManagerFactoryImpl.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
@Override
X509TrustManager getInstance(ManagerFactoryParameters spec)
        throws InvalidAlgorithmParameterException {
    if (spec instanceof CertPathTrustManagerParameters == false) {
        throw new InvalidAlgorithmParameterException
            ("Parameters must be CertPathTrustManagerParameters");
    }
    CertPathParameters params =
        ((CertPathTrustManagerParameters)spec).getParameters();
    if (params instanceof PKIXBuilderParameters == false) {
        throw new InvalidAlgorithmParameterException
            ("Encapsulated parameters must be PKIXBuilderParameters");
    }
    PKIXBuilderParameters pkixParams = (PKIXBuilderParameters)params;
    return new X509TrustManagerImpl(Validator.TYPE_PKIX, pkixParams);
}
 
Example 4
Source File: TrustManagerFactoryImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
@Override
X509TrustManager getInstance(ManagerFactoryParameters spec)
        throws InvalidAlgorithmParameterException {
    if (spec instanceof CertPathTrustManagerParameters == false) {
        throw new InvalidAlgorithmParameterException
            ("Parameters must be CertPathTrustManagerParameters");
    }
    CertPathParameters params =
        ((CertPathTrustManagerParameters)spec).getParameters();
    if (params instanceof PKIXBuilderParameters == false) {
        throw new InvalidAlgorithmParameterException
            ("Encapsulated parameters must be PKIXBuilderParameters");
    }
    PKIXBuilderParameters pkixParams = (PKIXBuilderParameters)params;
    return new X509TrustManagerImpl(Validator.TYPE_PKIX, pkixParams);
}
 
Example 5
Source File: TrustManagerFactoryImpl.java    From Bytecoder with Apache License 2.0 6 votes vote down vote up
@Override
X509TrustManager getInstance(ManagerFactoryParameters spec)
        throws InvalidAlgorithmParameterException {
    if (spec instanceof CertPathTrustManagerParameters == false) {
        throw new InvalidAlgorithmParameterException
            ("Parameters must be CertPathTrustManagerParameters");
    }
    CertPathParameters params =
        ((CertPathTrustManagerParameters)spec).getParameters();
    if (params instanceof PKIXBuilderParameters == false) {
        throw new InvalidAlgorithmParameterException
            ("Encapsulated parameters must be PKIXBuilderParameters");
    }
    PKIXBuilderParameters pkixParams = (PKIXBuilderParameters)params;
    return new X509TrustManagerImpl(Validator.TYPE_PKIX, pkixParams);
}
 
Example 6
Source File: TrustManagerFactoryImpl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
@Override
X509TrustManager getInstance(ManagerFactoryParameters spec)
        throws InvalidAlgorithmParameterException {
    if (spec instanceof CertPathTrustManagerParameters == false) {
        throw new InvalidAlgorithmParameterException
            ("Parameters must be CertPathTrustManagerParameters");
    }
    CertPathParameters params =
        ((CertPathTrustManagerParameters)spec).getParameters();
    if (params instanceof PKIXBuilderParameters == false) {
        throw new InvalidAlgorithmParameterException
            ("Encapsulated parameters must be PKIXBuilderParameters");
    }
    PKIXBuilderParameters pkixParams = (PKIXBuilderParameters)params;
    return new X509TrustManagerImpl(Validator.TYPE_PKIX, pkixParams);
}
 
Example 7
Source File: TrustManagerFactoryImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
@Override
X509TrustManager getInstance(ManagerFactoryParameters spec)
        throws InvalidAlgorithmParameterException {
    if (spec instanceof CertPathTrustManagerParameters == false) {
        throw new InvalidAlgorithmParameterException
            ("Parameters must be CertPathTrustManagerParameters");
    }
    CertPathParameters params =
        ((CertPathTrustManagerParameters)spec).getParameters();
    if (params instanceof PKIXBuilderParameters == false) {
        throw new InvalidAlgorithmParameterException
            ("Encapsulated parameters must be PKIXBuilderParameters");
    }
    PKIXBuilderParameters pkixParams = (PKIXBuilderParameters)params;
    return new X509TrustManagerImpl(Validator.TYPE_PKIX, pkixParams);
}
 
Example 8
Source File: TrustManagerFactoryImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
@Override
X509TrustManager getInstance(ManagerFactoryParameters spec)
        throws InvalidAlgorithmParameterException {
    if (spec instanceof CertPathTrustManagerParameters == false) {
        throw new InvalidAlgorithmParameterException
            ("Parameters must be CertPathTrustManagerParameters");
    }
    CertPathParameters params =
        ((CertPathTrustManagerParameters)spec).getParameters();
    if (params instanceof PKIXBuilderParameters == false) {
        throw new InvalidAlgorithmParameterException
            ("Encapsulated parameters must be PKIXBuilderParameters");
    }
    PKIXBuilderParameters pkixParams = (PKIXBuilderParameters)params;
    return new X509TrustManagerImpl(Validator.TYPE_PKIX, pkixParams);
}
 
Example 9
Source File: TrustManagerFactoryImpl.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
@Override
X509TrustManager getInstance(ManagerFactoryParameters spec)
        throws InvalidAlgorithmParameterException {
    if (spec instanceof CertPathTrustManagerParameters == false) {
        throw new InvalidAlgorithmParameterException
            ("Parameters must be CertPathTrustManagerParameters");
    }
    CertPathParameters params =
        ((CertPathTrustManagerParameters)spec).getParameters();
    if (params instanceof PKIXBuilderParameters == false) {
        throw new InvalidAlgorithmParameterException
            ("Encapsulated parameters must be PKIXBuilderParameters");
    }
    PKIXBuilderParameters pkixParams = (PKIXBuilderParameters)params;
    return new X509TrustManagerImpl(Validator.TYPE_PKIX, pkixParams);
}
 
Example 10
Source File: TrustManagerFactoryImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
X509TrustManager getInstance(KeyStore ks) throws KeyStoreException {
    return new X509TrustManagerImpl(Validator.TYPE_PKIX, ks);
}
 
Example 11
Source File: TrustManagerFactoryImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@Override
X509TrustManager getInstance(KeyStore ks) throws KeyStoreException {
    return new X509TrustManagerImpl(Validator.TYPE_PKIX, ks);
}
 
Example 12
Source File: TrustManagerFactoryImpl.java    From Bytecoder with Apache License 2.0 4 votes vote down vote up
@Override
X509TrustManager getInstance(
        Collection<X509Certificate> trustedCerts) {
    return new X509TrustManagerImpl(Validator.TYPE_PKIX, trustedCerts);
}
 
Example 13
Source File: TrustManagerFactoryImpl.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
X509TrustManager getInstance(KeyStore ks) throws KeyStoreException {
    return new X509TrustManagerImpl(Validator.TYPE_PKIX, ks);
}
 
Example 14
Source File: TrustManagerFactoryImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
X509TrustManager getInstance(
        Collection<X509Certificate> trustedCerts) {
    return new X509TrustManagerImpl(Validator.TYPE_PKIX, trustedCerts);
}
 
Example 15
Source File: TrustManagerFactoryImpl.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
X509TrustManager getInstance(KeyStore ks) throws KeyStoreException {
    return new X509TrustManagerImpl(Validator.TYPE_PKIX, ks);
}
 
Example 16
Source File: TrustManagerFactoryImpl.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
X509TrustManager getInstance(KeyStore ks) throws KeyStoreException {
    return new X509TrustManagerImpl(Validator.TYPE_PKIX, ks);
}
 
Example 17
Source File: TrustManagerFactoryImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
X509TrustManager getInstance(KeyStore ks) throws KeyStoreException {
    return new X509TrustManagerImpl(Validator.TYPE_PKIX, ks);
}
 
Example 18
Source File: TrustManagerFactoryImpl.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
X509TrustManager getInstance(
        Collection<X509Certificate> trustedCerts) {
    return new X509TrustManagerImpl(Validator.TYPE_PKIX, trustedCerts);
}
 
Example 19
Source File: TrustManagerFactoryImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Override
X509TrustManager getInstance(KeyStore ks) throws KeyStoreException {
    return new X509TrustManagerImpl(Validator.TYPE_PKIX, ks);
}
 
Example 20
Source File: TrustManagerFactoryImpl.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
X509TrustManager getInstance(
        Collection<X509Certificate> trustedCerts) {
    return new X509TrustManagerImpl(Validator.TYPE_PKIX, trustedCerts);
}