| java.lang.Object | ||
| ↳ | sun.security.x509.Extension | |
| ↳ | sun.security.x509.SubjectAlternativeNameExtension | |
This represents the Subject Alternative Name Extension. This extension, if present, allows the subject to specify multiple alternative names.
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).
The ASN.1 syntax for this is:
SubjectAltName ::= GeneralNames GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | IDENT | Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type. | |||||||||
| String | NAME | Attribute names. | |||||||||
| String | SUBJECT_NAME | ||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
sun.security.x509.Extension
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create a SubjectAlternativeNameExtension with the passed GeneralNames.
| |||||||||||
Create a SubjectAlternativeNameExtension with the specified
criticality and GeneralNames.
| |||||||||||
Create a default SubjectAlternativeNameExtension.
| |||||||||||
Create the extension from the passed DER encoded value.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Delete the attribute value.
| |||||||||||
Write the extension to the OutputStream.
| |||||||||||
Get the attribute value.
| |||||||||||
Return an enumeration of names of attributes existing within this
attribute.
| |||||||||||
Return the name of this attribute.
| |||||||||||
Set the attribute value.
| |||||||||||
Returns a printable representation of the SubjectAlternativeName.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
sun.security.x509.Extension
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
sun.security.x509.CertAttrSet
| |||||||||||
Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.
Create a SubjectAlternativeNameExtension with the passed GeneralNames. The extension is marked non-critical.
| names | the GeneralNames for the subject. |
|---|
| IOException | on error. |
|---|
Create a SubjectAlternativeNameExtension with the specified criticality and GeneralNames.
| critical | true if the extension is to be treated as critical. |
|---|---|
| names | the GeneralNames for the subject. |
| IOException | on error. |
|---|
Create a default SubjectAlternativeNameExtension. The extension is marked non-critical.
Create the extension from the passed DER encoded value.
| critical | true if the extension is to be treated as critical. |
|---|---|
| value | an array of DER encoded bytes of the actual value. |
| ClassCastException | if value is not an array of bytes |
|---|---|
| IOException | on error. |
Write the extension to the OutputStream.
| out | the OutputStream to write the extension to. |
|---|
| IOException | on encoding errors. |
|---|
Return an enumeration of names of attributes existing within this attribute.
Set the attribute value.
| name | the name of the attribute (e.g. "x509.info.key") |
|---|---|
| obj | the attribute object. |
| IOException |
|---|
Returns a printable representation of the SubjectAlternativeName.