Class AlternativeNameData

java.lang.Object
com.mulesoft.connectors.mcp.api.certificate.AlternativeNameData
All Implemented Interfaces:
Serializable

public class AlternativeNameData extends Object implements Serializable
A custom Data Transfer Object (DTO) to replace the X509Certificate AlternativeName class.

This class is a simple representation of an alternative name with two attributes: type and name. It implements Serializable to allow its instances to be serialized.

See Also:
  • Constructor Details

    • AlternativeNameData

      public AlternativeNameData(int type, String name)
      Constructs a new AlternativeNameData instance with the specified type and name.
      Parameters:
      type - the type of the alternative name
      name - the alternative name
  • Method Details

    • getType

      public int getType()
      Returns the type of the alternative name.
      Returns:
      the type of the alternative name
    • getName

      public String getName()
      Returns the alternative name.
      Returns:
      the alternative name
    • toString

      public String toString()
      Overrides:
      toString in class Object