java.lang.Object | ||
↳ | java.security.cert.CertPath | |
↳ | sun.security.provider.certpath.X509CertPath |
A CertPath
(certification path)
consisting exclusively of
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 CertPath
s may not follow
this convention. PKIX CertPathValidator
s will detect any
departure from this convention and throw a
CertPathValidatorException
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an
X509CertPath from a List of
X509Certificate s. | |||||||||||
Creates an
X509CertPath , reading the encoded form
from an InputStream . | |||||||||||
Creates an
X509CertPath , reading the encoded form
from an InputStream. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the list of certificates in this certification path.
| |||||||||||
Returns the encoded form of this certification path, using the
specified encoding.
| |||||||||||
Returns the encoded form of this certification path, using the
default encoding.
| |||||||||||
Returns an iteration of the encodings supported by this certification
path, with the default encoding first.
| |||||||||||
Returns the encodings supported by this certification path, with the
default encoding first.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates an X509CertPath
from a List
of
X509Certificate
s.
The certificates are copied out of the supplied List
object.
certs | a List of X509Certificate s |
---|
CertificateException | if certs contains an element
that is not an X509Certificate
|
---|
Creates an X509CertPath
, reading the encoded form
from an InputStream
. The data is assumed to be in
the default encoding.
is | the InputStream to read the data from |
---|
CertificateException | if an exception occurs while decoding |
---|
Creates an X509CertPath
, reading the encoded form
from an InputStream. The data is assumed to be in the specified
encoding.
is | the InputStream to read the data from |
---|---|
encoding | the encoding used |
CertificateException | if an exception occurs while decoding or the encoding requested is not supported |
---|
Returns the list of certificates in this certification path.
The List
returned must be immutable and thread-safe.
List
of X509Certificate
s
(may be empty, but not null)
Returns the encoded form of this certification path, using the specified encoding.
encoding | the name of the encoding to use |
---|
CertificateEncodingException | if an encoding error occurs or the encoding requested is not supported |
---|
Returns the encoded form of this certification path, using the default encoding.
CertificateEncodingException | if an encoding error occurs |
---|
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
.
Iterator
over the names of the supported
encodings (as Strings)
Returns the encodings supported by this certification path, with the default encoding first.
Iterator
over the names of the supported
encodings (as Strings)