Methods Summary |
---|
public final java.lang.String | getAlgorithm()Returns the certification path algorithm name.
return algorithm;
|
public static final java.lang.String | getDefaultType()Returns the default {@code CertPathValidator} type from the Security
Properties.
String defaultType = AccessController
.doPrivileged(new java.security.PrivilegedAction<String>() {
public String run() {
return Security.getProperty(PROPERTYNAME);
}
});
return (defaultType != null ? defaultType : DEFAULTPROPERTY);
|
public static java.security.cert.CertPathValidator | getInstance(java.lang.String algorithm)Returns a new certification path validator for the specified algorithm.
if (algorithm == null) {
throw new NullPointerException(Messages.getString("security.01")); //$NON-NLS-1$
}
synchronized (engine) {
engine.getInstance(algorithm, null);
return new CertPathValidator((CertPathValidatorSpi) engine.spi,
engine.provider, algorithm);
}
|
public static java.security.cert.CertPathValidator | getInstance(java.lang.String algorithm, java.lang.String provider)Returns a new certification path validator for the specified algorithm
from the specified provider.
if ((provider == null) || (provider.length() == 0)) {
throw new IllegalArgumentException(Messages.getString("security.02")); //$NON-NLS-1$
}
Provider impProvider = Security.getProvider(provider);
if (impProvider == null) {
throw new NoSuchProviderException(provider);
}
return getInstance(algorithm, impProvider);
|
public static java.security.cert.CertPathValidator | getInstance(java.lang.String algorithm, java.security.Provider provider)Returns a new certification path validator for the specified algorithm
from the specified provider.
if (provider == null) {
throw new IllegalArgumentException(Messages.getString("security.04")); //$NON-NLS-1$
}
if (algorithm == null) {
throw new NullPointerException(Messages.getString("security.01")); //$NON-NLS-1$
}
synchronized (engine) {
engine.getInstance(algorithm, provider, null);
return new CertPathValidator((CertPathValidatorSpi) engine.spi,
provider, algorithm);
}
|
public final java.security.Provider | getProvider()Returns the security provider.
return provider;
|
public final java.security.cert.CertPathValidatorResult | validate(java.security.cert.CertPath certPath, java.security.cert.CertPathParameters params)Validates the {@code CertPath} with the algorithm of this {@code
CertPathValidator} using the specified algorithm parameters.
return spiImpl.engineValidate(certPath, params);
|