java.security.cert
public
abstract
class
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 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
Summary
Protected Constructors
Public Methods
Protected Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Protected Constructors
protected
CertPath(String type)
Public Methods
public
boolean
equals(Object other)
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).
Parameters
| other
| CertPath to be compared for equality
|
Returns
- boolean
true if the object is the same as this
object false if it is different from this object.
public
abstract
List<? extends Certificate>
getCertificates()
Returns an immutable List of the
Certificates contained
in the
CertPath.
Returns
- list of
Certificates in the CertPath
public
abstract
byte[]
getEncoded()
Returns an encoding of the
CertPath using the default
encoding
Returns
- default encoding of the
CertPath
public
abstract
byte[]
getEncoded(String encoding)
Returns an encoding of the
CertPath using the specified
encoding
Parameters
| encoding
| encoding that should be generated |
Returns
- default encoding of the
CertPath
public
abstract
Iterator<String>
getEncodings()
Return an
Iterator over the supported encodings for a
representation of the certificate path.
Returns
Iterator over supported encodings (as
Strings)
public
String
getType()
Returns the type of
Certificate in the
CertPath
public
int
hashCode()
Overrides Object.hashCode() Defined as: hashCode = 31 *
path.getType().hashCode() + path.getCertificates().hashCode();
Returns
- hash code for CertPath object
public
String
toString()
Returns a
String representation of the
CertPath
Certificates. It is the result of
calling
toString on all
Certificates in
the
List.
Certificates
Returns
- string representation of
CertPath
Protected Methods
protected
Object
writeReplace()