Interface SystemNtpAuthKeysConfig

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject
    All Known Subinterfaces:
    Config, State

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

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

     grouping system-ntp-auth-keys-config {
       leaf key-id {
         type uint16;
       }
       leaf key-type {
         type identityref {
           base NTP_AUTH_TYPE;
         }
       }
       leaf key-value {
         type string;
       }
     }
     
    • Field Detail

      • QNAME

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

      • implementedInterface

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

        org.opendaylight.yangtools.yang.common.Uint16 getKeyId()
        Return keyId, or null if it is not present.
             
                 Integer identifier used by the client and server to designate a secret key. The
                 client and server must use the same key id.
             
         
        Returns:
        Uint16 keyId, or null if it is not present.
      • requireKeyId

        default @NonNull org.opendaylight.yangtools.yang.common.Uint16 requireKeyId()
        Return keyId, guaranteed to be non-null.
             
                 Integer identifier used by the client and server to designate a secret key. The
                 client and server must use the same key id.
             
         
        Returns:
        Uint16 keyId, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if keyId is not present
      • getKeyType

        Class<? extends NTPAUTHTYPE> getKeyType()
        Return keyType, or null if it is not present.
             
                 Encryption type used for the NTP authentication key
             
         
        Returns:
        Class<? extends NTPAUTHTYPE> keyType, or null if it is not present.
      • requireKeyType

        default @NonNull Class<? extends NTPAUTHTYPE> requireKeyType()
        Return keyType, guaranteed to be non-null.
             
                 Encryption type used for the NTP authentication key
             
         
        Returns:
        Class<? extends NTPAUTHTYPE> keyType, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if keyType is not present
      • getKeyValue

        String getKeyValue()
        Return keyValue, or null if it is not present.
             
                 NTP authentication key value
             
         
        Returns:
        String keyValue, or null if it is not present.
      • requireKeyValue

        default @NonNull String requireKeyValue()
        Return keyValue, guaranteed to be non-null.
             
                 NTP authentication key value
             
         
        Returns:
        String keyValue, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if keyValue is not present