All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject
All Known Subinterfaces:
Issuer, Subject

@Generated("mdsal-binding-generator") public interface X500Principal extends org.opendaylight.yangtools.yang.binding.DataObject

This class represents the following YANG schema fragment defined in module system-notifications

 grouping x500-principal {
   leaf country {
     type string;
   }
   leaf state {
     type string;
   }
   leaf locality {
     type string;
   }
   leaf organization {
     type string;
   }
   leaf organization-unit {
     type string;
   }
   leaf common-name {
     type string;
   }
 }
 
  • Field Details

    • QNAME

      static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
      YANG identifier of the statement represented by this class.
  • Method Details

    • implementedInterface

      Class<? extends X500Principal> implementedInterface()
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
    • getCountry

      String getCountry()
      Return country, or null if it is not present.
      Returns:
      String country, or null if it is not present.
    • requireCountry

      default @NonNull String requireCountry()
      Return country, guaranteed to be non-null.
      Returns:
      String country, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if country is not present
    • getState

      String getState()
      Return state, or null if it is not present.
      Returns:
      String state, or null if it is not present.
    • requireState

      default @NonNull String requireState()
      Return state, guaranteed to be non-null.
      Returns:
      String state, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if state is not present
    • getLocality

      String getLocality()
      Return locality, or null if it is not present.
      Returns:
      String locality, or null if it is not present.
    • requireLocality

      default @NonNull String requireLocality()
      Return locality, guaranteed to be non-null.
      Returns:
      String locality, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if locality is not present
    • getOrganization

      String getOrganization()
      Return organization, or null if it is not present.
      Returns:
      String organization, or null if it is not present.
    • requireOrganization

      default @NonNull String requireOrganization()
      Return organization, guaranteed to be non-null.
      Returns:
      String organization, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if organization is not present
    • getOrganizationUnit

      String getOrganizationUnit()
      Return organizationUnit, or null if it is not present.
      Returns:
      String organizationUnit, or null if it is not present.
    • requireOrganizationUnit

      default @NonNull String requireOrganizationUnit()
      Return organizationUnit, guaranteed to be non-null.
      Returns:
      String organizationUnit, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if organizationUnit is not present
    • getCommonName

      String getCommonName()
      Return commonName, or null if it is not present.
      Returns:
      String commonName, or null if it is not present.
    • requireCommonName

      default @NonNull String requireCommonName()
      Return commonName, guaranteed to be non-null.
      Returns:
      String commonName, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if commonName is not present