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:
SwitchCertificate, SwitchCertificate

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

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

 grouping switch-certificate {
   container subject {
     uses x500-principal;
   }
   container issuer {
     uses x500-principal;
   }
   leaf valid-from {
     type yang:date-and-time;
   }
   leaf valid-to {
     type yang:date-and-time;
   }
   leaf serial-number {
     type string {
       pattern 0|(-?[1-9][0-9]*);
     }
   }
   leaf-list subject-alternate-names {
     type string;
     ordered-by user;
   }
 }
 
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final @NonNull org.opendaylight.yangtools.yang.common.QName
    YANG identifier of the statement represented by this class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return issuer, or null if it is not present.
    Return serialNumber, or null if it is not present.
    Return subject, or null if it is not present.
    @Nullable List<String>
    Return subjectAlternateNames, or null if it is not present.
    org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.DateAndTime
    Return validFrom, or null if it is not present.
    org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.DateAndTime
    Return validTo, or null if it is not present.
     
    @NonNull Issuer
    Return issuer, or an empty instance if it is not present.
    @NonNull Subject
    Return subject, or an empty instance if it is not present.
    default @NonNull String
    Return serialNumber, guaranteed to be non-null.
    default @NonNull List<String>
    Return subjectAlternateNames, guaranteed to be non-null.
    default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.DateAndTime
    Return validFrom, guaranteed to be non-null.
    default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.DateAndTime
    Return validTo, guaranteed to be non-null.
  • 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 SwitchCertificate> 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
    • getSubject

      Subject getSubject()
      Return subject, or null if it is not present.
      Returns:
      Subject subject, or null if it is not present.
    • nonnullSubject

      @NonNull Subject nonnullSubject()
      Return subject, or an empty instance if it is not present.
      Returns:
      Subject subject, or an empty instance if it is not present.
    • getIssuer

      Issuer getIssuer()
      Return issuer, or null if it is not present.
      Returns:
      Issuer issuer, or null if it is not present.
    • nonnullIssuer

      @NonNull Issuer nonnullIssuer()
      Return issuer, or an empty instance if it is not present.
      Returns:
      Issuer issuer, or an empty instance if it is not present.
    • getValidFrom

      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.DateAndTime getValidFrom()
      Return validFrom, or null if it is not present.
      Returns:
      DateAndTime validFrom, or null if it is not present.
    • requireValidFrom

      default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.DateAndTime requireValidFrom()
      Return validFrom, guaranteed to be non-null.
      Returns:
      DateAndTime validFrom, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if validFrom is not present
    • getValidTo

      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.DateAndTime getValidTo()
      Return validTo, or null if it is not present.
      Returns:
      DateAndTime validTo, or null if it is not present.
    • requireValidTo

      default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.DateAndTime requireValidTo()
      Return validTo, guaranteed to be non-null.
      Returns:
      DateAndTime validTo, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if validTo is not present
    • getSerialNumber

      String getSerialNumber()
      Return serialNumber, or null if it is not present.
      Returns:
      String serialNumber, or null if it is not present.
    • requireSerialNumber

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

      @Nullable List<String> getSubjectAlternateNames()
      Return subjectAlternateNames, or null if it is not present.
      Returns:
      List<String> subjectAlternateNames, or null if it is not present.
    • requireSubjectAlternateNames

      default @NonNull List<String> requireSubjectAlternateNames()
      Return subjectAlternateNames, guaranteed to be non-null.
      Returns:
      List<String> subjectAlternateNames, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if subjectAlternateNames is not present