Class SubjectAlternativeNames

java.lang.Object
eu.europa.esig.dss.model.x509.extension.CertificateExtension
eu.europa.esig.dss.model.x509.extension.SubjectAlternativeNames
All Implemented Interfaces:
OidBasedEnum, OidDescription, Serializable

public class SubjectAlternativeNames extends CertificateExtension
4.2.1.6. Subject Alternative Name The subject alternative name extension allows identities to be bound to the subject of the certificate. These identities may be included in addition to or in place of the identity in the subject field of the certificate. Defined options include an Internet electronic mail address, a DNS name, an IP address, and a Uniform Resource Identifier (URI). Other options exist, including completely local definitions. Multiple name forms, and multiple instances of each name form, MAY be included. Whenever such identities are to be bound into a certificate, the subject alternative name (or issuer alternative name) extension MUST be used; however, a DNS name MAY also be represented in the subject field using the domainComponent attribute as described in Section 4.1.2.4. Note that where such names are represented in the subject field implementations are not required to convert them into DNS names.
See Also:
  • Constructor Details

    • SubjectAlternativeNames

      public SubjectAlternativeNames()
      Default constructor
  • Method Details

    • getGeneralNames

      public List<GeneralName> getGeneralNames()
      Returns a list of subject alternative names
      Returns:
      list of GeneralNames
    • setGeneralNames

      public void setGeneralNames(List<GeneralName> names)
      Sets a list of subject alternative names
      Parameters:
      names - list of GeneralNames