| java.lang.Object java.security.cert.CertPath sun.security.provider.certpath.X509CertPath
X509CertPath | public class X509CertPath extends CertPath (Code) | | A
java.security.cert.CertPath CertPath (certification path)
consisting exclusively of
java.security.cert.X509Certificate X509Certificate s.
By convention, X.509 CertPath s are stored from target
to trust anchor.
That is, the issuer of one certificate is the subject of the following
one. However, unvalidated X.509 CertPaths may not follow
this convention. PKIX CertPathValidator s will detect any
departure from this convention and throw a
CertPathValidatorException .
version: 1.12, 10/10/06 author: Yassir Elley since: 1.4 |
Method Summary | |
public List | getCertificates() Returns the list of certificates in this certification path. | public byte[] | getEncoded() Returns the encoded form of this certification path, using the
default encoding. | public byte[] | getEncoded(String encoding) Returns the encoded form of this certification path, using the
specified encoding. | public Iterator | getEncodings() Returns an iteration of the encodings supported by this certification
path, with the default encoding first. | public static Iterator | getEncodingsStatic() Returns the encodings supported by this certification path, with the
default encoding first. |
X509CertPath | public X509CertPath(List certs) throws CertificateException(Code) | | Creates an X509CertPath from a List of
X509Certificate s.
The certificates are copied out of the supplied List
object.
Parameters: certs - a List of X509Certificate s exception: CertificateException - if certs contains an elementthat is not an X509Certificate |
X509CertPath | public X509CertPath(InputStream is) throws CertificateException(Code) | | Creates an X509CertPath , reading the encoded form
from an InputStream . The data is assumed to be in
the default encoding.
Parameters: is - the InputStream to read the data from exception: CertificateException - if an exception occurs while decoding |
X509CertPath | public X509CertPath(InputStream is, String encoding) throws CertificateException(Code) | | Creates an X509CertPath , reading the encoded form
from an InputStream. The data is assumed to be in the specified
encoding.
Parameters: is - the InputStream to read the data from Parameters: encoding - the encoding used exception: CertificateException - if an exception occurs while decoding orthe encoding requested is not supported |
getCertificates | public List getCertificates()(Code) | | Returns the list of certificates in this certification path.
The List returned must be immutable and thread-safe.
an immutable List of X509Certificate s(may be empty, but not null) |
getEncoded | public byte[] getEncoded(String encoding) throws CertificateEncodingException(Code) | | Returns the encoded form of this certification path, using the
specified encoding.
Parameters: encoding - the name of the encoding to use the encoded bytes exception: CertificateEncodingException - if an encoding error occurs orthe encoding requested is not supported |
getEncodings | public Iterator getEncodings()(Code) | | Returns an iteration of the encodings supported by this certification
path, with the default encoding first.
Attempts to modify the returned Iterator via its
remove method result in an
UnsupportedOperationException .
an Iterator over the names of the supportedencodings (as Strings) |
getEncodingsStatic | public static Iterator getEncodingsStatic()(Code) | | Returns the encodings supported by this certification path, with the
default encoding first.
an Iterator over the names of the supportedencodings (as Strings) |
|
|