Interface AaaTacacsServerConfig
- 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
@Generated("mdsal-binding-generator")
public interface AaaTacacsServerConfig
extends org.opendaylight.yangtools.yang.binding.DataObject
Configuration data for a TACACS+ server
This class represents the following YANG schema fragment defined in module openconfig-aaa
grouping aaa-tacacs-server-config {
leaf port {
type oc-inet:port-number;
default 49;
}
leaf secret-key {
type oc-types:routing-password;
}
leaf secret-key-hashed {
type oc-aaa-types:crypt-password-type;
}
leaf source-address {
type oc-inet:ip-address;
}
}
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QNameYANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptiongetPort()Return port, ornullif it is not present.Return secretKey, ornullif it is not present.Return secretKeyHashed, ornullif it is not present.Return sourceAddress, ornullif it is not present.Class<? extends AaaTacacsServerConfig>default @NonNull PortNumberReturn port, guaranteed to be non-null.default @NonNull RoutingPasswordReturn secretKey, guaranteed to be non-null.default @NonNull CryptPasswordTypeReturn secretKeyHashed, guaranteed to be non-null.default @NonNull IpAddressReturn sourceAddress, guaranteed to be non-null.
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends AaaTacacsServerConfig> implementedInterface()- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getPort
PortNumber getPort()Return port, ornullif it is not present.The port number on which to contact the TACACS server- Returns:
PortNumberport, ornullif it is not present.
-
requirePort
Return port, guaranteed to be non-null.The port number on which to contact the TACACS server- Returns:
PortNumberport, guaranteed to be non-null.- Throws:
NoSuchElementException- if port is not present
-
getSecretKey
RoutingPassword getSecretKey()Return secretKey, ornullif it is not present.The unencrypted shared key used between the authentication server and the device.- Returns:
RoutingPasswordsecretKey, ornullif it is not present.
-
requireSecretKey
Return secretKey, guaranteed to be non-null.The unencrypted shared key used between the authentication server and the device.- Returns:
RoutingPasswordsecretKey, guaranteed to be non-null.- Throws:
NoSuchElementException- if secretKey is not present
-
getSecretKeyHashed
CryptPasswordType getSecretKeyHashed()Return secretKeyHashed, ornullif it is not present.The hashed shared key used between the authentication server and the device.- Returns:
CryptPasswordTypesecretKeyHashed, ornullif it is not present.
-
requireSecretKeyHashed
Return secretKeyHashed, guaranteed to be non-null.The hashed shared key used between the authentication server and the device.- Returns:
CryptPasswordTypesecretKeyHashed, guaranteed to be non-null.- Throws:
NoSuchElementException- if secretKeyHashed is not present
-
getSourceAddress
IpAddress getSourceAddress()Return sourceAddress, ornullif it is not present.Source IP address to use in messages to the TACACS server- Returns:
IpAddresssourceAddress, ornullif it is not present.
-
requireSourceAddress
Return sourceAddress, guaranteed to be non-null.Source IP address to use in messages to the TACACS server- Returns:
IpAddresssourceAddress, guaranteed to be non-null.- Throws:
NoSuchElementException- if sourceAddress is not present
-