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

@Generated("mdsal-binding-generator") public interface Security extends org.opendaylight.yangtools.yang.binding.DataObject, Credentials
Security group of statements are available for session security and authentication. The session between the client and target MUST be encrypted using TLS. For DEBUG reasons is available connection type insecure-debug-only.

This class represents the following YANG schema fragment defined in module gnmi-topology

 grouping security {
   uses credentials;
   choice security-choice {
     case secure {
       leaf keystore-id {
         type string;
       }
     }
     case insecure-debug-only {
       leaf connection-type {
         type enumeration {
           enum PLAINTEXT;
           enum INSECURE;
         }
       }
     }
   }
 }
 
  • 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 securityChoice, or null if it is not present.
    Class<? extends Security>
     

    Methods inherited from interface org.opendaylight.yang.gen.v1.urn.lighty.gnmi.topology.rev210316.Credentials

    getCredentials, nonnullCredentials
  • 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 Security> implementedInterface()
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
      Specified by:
      implementedInterface in interface Credentials
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
    • getSecurityChoice

      SecurityChoice getSecurityChoice()
      Return securityChoice, or null if it is not present.
           
               Default model behavior is a secure case and required keystore-id. If is required
               to use one of the insecure options, then must be defined in request.
           
       
      Returns:
      SecurityChoice securityChoice, or null if it is not present.