java.lang.Object | |
↳ | sun.security.x509.DistributionPointName |
Represents the DistributionPointName ASN.1 type. It is used in the CRL Distribution Points Extension (OID = 2.5.29.31) and the Issuing Distribution Point Extension (OID = 2.5.29.28).
Its ASN.1 definition is:
DistributionPointName ::= CHOICE { fullName [0] GeneralNames, nameRelativeToCRLIssuer [1] RelativeDistinguishedName } 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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a distribution point name using a full name.
| |||||||||||
Creates a distribution point name using a relative name.
| |||||||||||
Creates a distribution point name from its DER-encoded form.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Encodes the distribution point name and writes it to the DerOutputStream.
| |||||||||||
Compare an object to this distribution point name for equality.
| |||||||||||
Returns the full name for the distribution point or null if not set.
| |||||||||||
Returns the relative name for the distribution point or null if not set.
| |||||||||||
Returns the hash code for this distribution point name.
| |||||||||||
Returns a printable string of the distribution point name.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a distribution point name using a full name.
fullName | the name for the distribution point. |
---|
IllegalArgumentException | if fullName is null.
|
---|
Creates a distribution point name using a relative name.
relativeName | the name of the distribution point relative to the name of the issuer of the CRL. |
---|
IllegalArgumentException | if relativeName is null.
|
---|
Creates a distribution point name from its DER-encoded form.
encoding | the DER-encoded value. |
---|
IOException | on decoding error. |
---|
Encodes the distribution point name and writes it to the DerOutputStream.
out | the output stream. |
---|
IOException | on encoding error. |
---|
Compare an object to this distribution point name for equality.
obj | Object to be compared to this |
---|
Returns the full name for the distribution point or null if not set.
Returns the relative name for the distribution point or null if not set.
Returns the hash code for this distribution point name.
Returns a printable string of the distribution point name.