java.lang.Object | |
↳ | sun.security.x509.DistributionPoint |
Represent the DistributionPoint sequence used in the CRL Distribution Points Extension (OID = 2.5.29.31).
The ASN.1 definition for this is:
DistributionPoint ::= SEQUENCE { distributionPoint [0] DistributionPointName OPTIONAL, reasons [1] ReasonFlags OPTIONAL, cRLIssuer [2] GeneralNames OPTIONAL } DistributionPointName ::= CHOICE { fullName [0] GeneralNames, nameRelativeToCRLIssuer [1] RelativeDistinguishedName } ReasonFlags ::= BIT STRING { unused (0), keyCompromise (1), cACompromise (2), affiliationChanged (3), superseded (4), cessationOfOperation (5), certificateHold (6), privilegeWithdrawn (7), aACompromise (8) } GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName GeneralName ::= CHOICE { otherName [0] INSTANCE OF OTHER-NAME, rfc822Name [1] IA5String, dNSName [2] IA5String, x400Address [3] ORAddress, directoryName [4] Name, ediPartyName [5] EDIPartyName, uniformResourceIdentifier [6] IA5String, iPAddress [7] OCTET STRING, registeredID [8] OBJECT IDENTIFIER } RelativeDistinguishedName ::= SET OF AttributeTypeAndValue AttributeTypeAndValue ::= SEQUENCE { type AttributeType, value AttributeValue } AttributeType ::= OBJECT IDENTIFIER AttributeValue ::= ANY DEFINED BY AttributeType
Instances of this class are designed to be immutable. However, since this is an internal API we do not use defensive cloning for values for performance reasons. It is the responsibility of the consumer to ensure that no mutable elements are modified.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | AA_COMPROMISE | ||||||||||
int | AFFILIATION_CHANGED | ||||||||||
int | CA_COMPROMISE | ||||||||||
int | CERTIFICATE_HOLD | ||||||||||
int | CESSATION_OF_OPERATION | ||||||||||
int | KEY_COMPROMISE | ||||||||||
int | PRIVILEGE_WITHDRAWN | ||||||||||
int | SUPERSEDED |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor for the class using GeneralNames for DistributionPointName
| |||||||||||
Constructor for the class using RelativeDistinguishedName for
DistributionPointName
| |||||||||||
Create the object from the passed DER encoded form.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Write the DistributionPoint value to the DerOutputStream.
| |||||||||||
Compare an object to this DistributionPoint for equality.
| |||||||||||
Return the CRL issuer name or null if not set.
| |||||||||||
Return the full distribution point name or null if not set.
| |||||||||||
Return the reason flags or null if not set.
| |||||||||||
Return the relative distribution point name or null if not set.
| |||||||||||
Returns a hash code value for the object.
| |||||||||||
Return a printable string of the Distribution Point.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructor for the class using GeneralNames for DistributionPointName
fullName | the GeneralNames of the distribution point; may be null |
---|
Constructor for the class using RelativeDistinguishedName for DistributionPointName
relativeName | the RelativeDistinguishedName of the distribution point; may not be null |
---|
Create the object from the passed DER encoded form.
val | the DER encoded form of the DistributionPoint |
---|
IOException | on error |
---|
Write the DistributionPoint value to the DerOutputStream.
out | the DerOutputStream to write the extension to. |
---|
IOException | on error. |
---|
Compare an object to this DistributionPoint for equality.
obj | Object to be compared to this |
---|
Return the reason flags or null if not set.
Returns a hash code value for the object. This method is
supported for the benefit of hashtables such as those provided by
java.util.Hashtable
.
The general contract of hashCode
is:
hashCode
method on each of
the two objects must produce the same integer result.
equals(java.lang.Object)
method, then calling the hashCode method on each of the
two objects must produce distinct integer results. However, the
programmer should be aware that producing distinct integer results
for unequal objects may improve the performance of hashtables.
As much as is reasonably practical, the hashCode method defined by class Object does return distinct integers for distinct objects. (This is typically implemented by converting the internal address of the object into an integer, but this implementation technique is not required by the JavaTM programming language.)
Return a printable string of the Distribution Point.