public class DistributionPointName
extends java.lang.Object
implements com.tencent.kona.sun.security.util.DerEncoder
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.
CRLDistributionPointsExtension,
IssuingDistributionPointExtension| Constructor and Description |
|---|
DistributionPointName(com.tencent.kona.sun.security.util.DerValue encoding)
Creates a distribution point name from its DER-encoded form.
|
DistributionPointName(GeneralNames fullName)
Creates a distribution point name using a full name.
|
DistributionPointName(RDN relativeName)
Creates a distribution point name using a relative name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(com.tencent.kona.sun.security.util.DerOutputStream out)
Encodes the distribution point name and writes it to the DerOutputStream.
|
boolean |
equals(java.lang.Object obj)
Compare an object to this distribution point name for equality.
|
GeneralNames |
getFullName()
Returns the full name for the distribution point or null if not set.
|
RDN |
getRelativeName()
Returns the relative name for the distribution point or null if not set.
|
int |
hashCode()
Returns the hash code for this distribution point name.
|
java.lang.String |
toString()
Returns a printable string of the distribution point name.
|
public DistributionPointName(GeneralNames fullName)
fullName - the name for the distribution point.java.lang.IllegalArgumentException - if fullName is null.public DistributionPointName(RDN relativeName)
relativeName - the name of the distribution point relative to
the name of the issuer of the CRL.java.lang.IllegalArgumentException - if relativeName is null.public DistributionPointName(com.tencent.kona.sun.security.util.DerValue encoding)
throws java.io.IOException
encoding - the DER-encoded value.java.io.IOException - on decoding error.public GeneralNames getFullName()
public RDN getRelativeName()
public void encode(com.tencent.kona.sun.security.util.DerOutputStream out)
encode in interface com.tencent.kona.sun.security.util.DerEncoderout - the output stream.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Object to be compared to thispublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object