public class IssuerAlternativeNameExtension extends Extension
Extensions are represented as a sequence of the extension identifier (Object Identifier), a boolean flag stating whether the extension is to be treated as being critical and the extension value itself (this is again a DER encoding of the extension value).
Extension| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
critical, extensionId, extensionValue| Constructor and Description |
|---|
IssuerAlternativeNameExtension(java.lang.Boolean critical,
GeneralNames names)
Create a IssuerAlternativeNameExtension with the passed criticality
and GeneralNames.
|
IssuerAlternativeNameExtension(java.lang.Boolean critical,
java.lang.Object value)
Create the extension from the passed DER encoded value.
|
IssuerAlternativeNameExtension(GeneralNames names)
Create a IssuerAlternativeNameExtension with the passed GeneralNames.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(com.tencent.kona.sun.security.util.DerOutputStream out)
Write the extension to the OutputStream.
|
java.lang.String |
getName()
Return the name of this extension.
|
GeneralNames |
getNames() |
java.lang.String |
toString()
Returns a printable representation of the IssuerAlternativeName.
|
encode, equals, getExtensionId, getExtensionValue, getId, getValue, hashCode, isCritical, newExtensionpublic static final java.lang.String NAME
public IssuerAlternativeNameExtension(GeneralNames names)
names - the GeneralNames for the issuer.public IssuerAlternativeNameExtension(java.lang.Boolean critical,
GeneralNames names)
critical - true if the extension is to be treated as critical.names - the GeneralNames for the issuer, cannot be null or empty.public IssuerAlternativeNameExtension(java.lang.Boolean critical,
java.lang.Object value)
throws java.io.IOException
critical - true if the extension is to be treated as critical.value - an array of DER encoded bytes of the actual value.java.lang.ClassCastException - if value is not an array of bytesjava.io.IOException - on error.public java.lang.String toString()
public void encode(com.tencent.kona.sun.security.util.DerOutputStream out)
public GeneralNames getNames()