Methods Summary |
---|
public final java.security.cert.CertPathBuilderResult | build(java.security.cert.CertPathParameters params)Builds a certification path with the specified algorithm parameters.
return spiImpl.engineBuild(params);
|
public final java.lang.String | getAlgorithm()Returns the algorithm name of this instance.
return algorithm;
|
public static final java.lang.String | getDefaultType()Returns the default {@code CertPathBuilder} 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.CertPathBuilder | getInstance(java.lang.String algorithm)Creates a new {@code CertPathBuilder} instance with the specified
algorithm.
if (algorithm == null) {
throw new NullPointerException(Messages.getString("security.01")); //$NON-NLS-1$
}
synchronized (engine) {
engine.getInstance(algorithm, null);
return new CertPathBuilder((CertPathBuilderSpi) engine.spi,
engine.provider, algorithm);
}
|
public static java.security.cert.CertPathBuilder | getInstance(java.lang.String algorithm, java.lang.String provider)Creates a new {@code CertPathBuilder} instance from the specified
provider providing the specified algorithm.
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.CertPathBuilder | getInstance(java.lang.String algorithm, java.security.Provider provider)Creates a new {@code CertPathBuilder} instance from the specified
provider providing the specified algorithm.
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 CertPathBuilder((CertPathBuilderSpi) engine.spi, provider,
algorithm);
}
|
public final java.security.Provider | getProvider()Returns the provider of this instance.
return provider;
|