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
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a list of subject alternative namesvoid
setGeneralNames
(List<GeneralName> names) Sets a list of subject alternative namesMethods inherited from class eu.europa.esig.dss.model.x509.extension.CertificateExtension
checkCritical, getDescription, getOctets, getOid, isCritical, setOctets
-
Constructor Details
-
SubjectAlternativeNames
public SubjectAlternativeNames()Default constructor
-
-
Method Details
-
getGeneralNames
Returns a list of subject alternative names- Returns:
- list of
GeneralName
s
-
setGeneralNames
Sets a list of subject alternative names- Parameters:
names
- list ofGeneralName
s
-