| java.lang.Object | |
| ↳ | java.security.cert.CertPath |
An immutable certificate path that can be validated. All certificates in the path are of the same type (i.e., X509).
A CertPath can be represented as a byte array in at least one
supported encoding scheme (i.e. PkiPath or PKCS7) when serialized.
When a List of the certificates is obtained it must be immutable.
A CertPath must be thread-safe without requiring coordinated access.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| CertPath.CertPathRep | The alternate Serializable class to be used for serialization and
deserialization on CertPath objects. |
||||||||||
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
CertPath instance for the specified certificate
type. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns
true if Certificates in the list are the same
type and the lists are equal (and by implication the certificates
contained within are the same). | |||||||||||
Returns an immutable List of the
Certificates contained
in the CertPath. | |||||||||||
Returns an encoding of the
CertPath using the specified encoding. | |||||||||||
Returns an encoding of the
CertPath using the default encoding. | |||||||||||
Returns an
Iterator over the supported encodings for a
representation of the certificate path. | |||||||||||
Returns the type of
Certificate in this instance. | |||||||||||
Overrides
Object.hashCode(). | |||||||||||
Returns a
String representation of this CertPath
instance. | |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns an alternate object to be serialized.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates a new CertPath instance for the specified certificate
type.
| type | the certificate type. |
|---|
Returns true if Certificates in the list are the same
type and the lists are equal (and by implication the certificates
contained within are the same).
| other | CertPath to be compared for equality. |
|---|
true if the object are equal, false otherwise.
Returns an immutable List of the Certificates contained
in the CertPath.
Certificates in the CertPath.
Returns an encoding of the CertPath using the specified encoding.
| encoding | encoding that should be generated. |
|---|
CertPath.| CertificateEncodingException | if the encoding fails. |
|---|
Returns an encoding of the CertPath using the default encoding.
CertPath.| CertificateEncodingException | if the encoding fails. |
|---|
Returns an Iterator over the supported encodings for a
representation of the certificate path.
Iterator over supported encodings (as Strings).
Returns the type of Certificate in this instance.
Overrides Object.hashCode(). The function is defined as follows:
hashCode = 31 * path.getType().hashCode() +
path.getCertificates().hashCode();
Returns a String representation of this CertPath
instance. It is the result of calling toString on all Certificates in the List.
Returns an alternate object to be serialized.
| ObjectStreamException | if the creation of the alternate object fails. |
|---|