Interface Security

  • All Superinterfaces:
    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;
             }
           }
         }
       }
     }
     
    The schema path to identify an instance is gnmi-topology/security
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
    • Method Detail

      • implementedInterface

        Class<? extends Security> implementedInterface()
        Specified by:
        implementedInterface in interface Credentials
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        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:
        org.opendaylight.yang.gen.v1.urn.lighty.gnmi.topology.rev210316.security.SecurityChoice securityChoice, or null if it is not present.