| java.lang.Object sun.security.x509.Extension sun.security.x509.SubjectAlternativeNameExtension
SubjectAlternativeNameExtension | public class SubjectAlternativeNameExtension extends Extension implements CertAttrSet(Code) | | 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
author: Amit Kapoor author: Hemma Prafullchandra version: 1.14 See Also: Extension See Also: CertAttrSet |
IDENT | final public static String IDENT(Code) | | Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type.
|
SubjectAlternativeNameExtension | public SubjectAlternativeNameExtension(GeneralNames names) throws IOException(Code) | | Create a SubjectAlternativeNameExtension with the passed GeneralNames.
The extension is marked non-critical.
Parameters: names - the GeneralNames for the subject. exception: IOException - on error. |
SubjectAlternativeNameExtension | public SubjectAlternativeNameExtension(Boolean critical, GeneralNames names) throws IOException(Code) | | Create a SubjectAlternativeNameExtension with the specified
criticality and GeneralNames.
Parameters: critical - true if the extension is to be treated as critical. Parameters: names - the GeneralNames for the subject. exception: IOException - on error. |
SubjectAlternativeNameExtension | public SubjectAlternativeNameExtension()(Code) | | Create a default SubjectAlternativeNameExtension. The extension
is marked non-critical.
|
SubjectAlternativeNameExtension | public SubjectAlternativeNameExtension(Boolean critical, Object value) throws IOException(Code) | | Create the extension from the passed DER encoded value.
Parameters: critical - true if the extension is to be treated as critical. Parameters: value - Array of DER encoded bytes of the actual value. exception: IOException - on error. |
decode | public void decode(InputStream in) throws IOException(Code) | | Decode the extension from the InputStream.
Parameters: in - the InputStream to unmarshal the contents from. exception: IOException - on decoding or validity errors. |
encode | public void encode(OutputStream out) throws IOException(Code) | | Write the extension to the OutputStream.
Parameters: out - the OutputStream to write the extension to. exception: IOException - on encoding errors. |
getElements | public Enumeration getElements()(Code) | | Return an enumeration of names of attributes existing within this
attribute.
|
getName | public String getName()(Code) | | Return the name of this attribute.
|
toString | public String toString()(Code) | | Returns a printable representation of the SubjectAlternativeName.
|
|
|