pub struct SubjectAlternativeName { /* private fields */ }
Expand description

An extension that allows additional identities to be bound to the subject of the certificate.

Implementations

Construct a new SubjectAlternativeName extension.

Sets the critical flag to true. The extension will be critical.

Sets the email flag.

Sets the uri flag.

Sets the dns flag.

Sets the rid flag.

Sets the ip flag.

👎Deprecated: dir_name is deprecated and always panics. Please file a bug if you have a use case for this.

Sets the dirName flag.

Not currently actually supported, always panics.

👎Deprecated: other_name is deprecated and always panics. Please use other_name2.

Sets the otherName flag.

Not currently actually supported, always panics. Please use other_name2

Sets the otherName flag.

content must be a valid der encoded ASN1_TYPE

If you want to add just a ia5string use other_name_ia5string

Return a SubjectAlternativeName extension as an X509Extension.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.