Interface AaaAuthenticationUserConfig
- 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 AaaAuthenticationUserConfig
extends org.opendaylight.yangtools.yang.binding.DataObject
Configuration data for local users
This class represents the following YANG schema fragment defined in module openconfig-aaa
grouping aaa-authentication-user-config {
leaf username {
type string;
}
leaf password {
type string;
oc-ext:openconfig-hashed-value;
}
leaf password-hashed {
type oc-aaa-types:crypt-password-type;
}
leaf ssh-key {
type string;
}
leaf role {
type union {
type string;
type identityref {
base SYSTEM_DEFINED_ROLES;
}
}
}
}
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classThis class represents the following YANG schema fragment defined in module openconfig-aaa -
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 TypeMethodDescriptionReturn password, ornullif it is not present.Return passwordHashed, ornullif it is not present.getRole()Return role, ornullif it is not present.Return sshKey, ornullif it is not present.Return username, ornullif it is not present.Class<? extends AaaAuthenticationUserConfig>default @NonNull StringReturn password, guaranteed to be non-null.default @NonNull CryptPasswordTypeReturn passwordHashed, guaranteed to be non-null.default @NonNull AaaAuthenticationUserConfig.RoleReturn role, guaranteed to be non-null.default @NonNull StringReturn sshKey, guaranteed to be non-null.default @NonNull StringReturn username, 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 AaaAuthenticationUserConfig> 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
-
getUsername
String getUsername()Return username, ornullif it is not present.Assigned username for this user- Returns:
Stringusername, ornullif it is not present.
-
requireUsername
Return username, guaranteed to be non-null.Assigned username for this user- Returns:
Stringusername, guaranteed to be non-null.- Throws:
NoSuchElementException- if username is not present
-
getPassword
String getPassword()Return password, ornullif it is not present.The user password, supplied as cleartext. The system must hash the value and only store the hashed value.- Returns:
Stringpassword, ornullif it is not present.
-
requirePassword
Return password, guaranteed to be non-null.The user password, supplied as cleartext. The system must hash the value and only store the hashed value.- Returns:
Stringpassword, guaranteed to be non-null.- Throws:
NoSuchElementException- if password is not present
-
getPasswordHashed
CryptPasswordType getPasswordHashed()Return passwordHashed, ornullif it is not present.The user password, supplied as a hashed value using the notation described in the definition of the crypt-password-type.- Returns:
CryptPasswordTypepasswordHashed, ornullif it is not present.
-
requirePasswordHashed
Return passwordHashed, guaranteed to be non-null.The user password, supplied as a hashed value using the notation described in the definition of the crypt-password-type.- Returns:
CryptPasswordTypepasswordHashed, guaranteed to be non-null.- Throws:
NoSuchElementException- if passwordHashed is not present
-
getSshKey
String getSshKey()Return sshKey, ornullif it is not present.SSH public key for the user (RSA or DSA)- Returns:
StringsshKey, ornullif it is not present.
-
requireSshKey
Return sshKey, guaranteed to be non-null.SSH public key for the user (RSA or DSA)- Returns:
StringsshKey, guaranteed to be non-null.- Throws:
NoSuchElementException- if sshKey is not present
-
getRole
AaaAuthenticationUserConfig.Role getRole()Return role, ornullif it is not present.Role assigned to the user. The role may be supplied as a string or a role defined by the SYSTEM_DEFINED_ROLES identity.- Returns:
Rolerole, ornullif it is not present.
-
requireRole
Return role, guaranteed to be non-null.Role assigned to the user. The role may be supplied as a string or a role defined by the SYSTEM_DEFINED_ROLES identity.- Returns:
Rolerole, guaranteed to be non-null.- Throws:
NoSuchElementException- if role is not present
-