Interface AaaAuthenticationUserConfig
-
- All Superinterfaces:
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 usersThis 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 Classes Modifier and Type Interface Description static classAaaAuthenticationUserConfig.Role
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QNameQNAMEYANG identifier of the statement represented by this class.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetPassword()Return password, ornullif it is not present.CryptPasswordTypegetPasswordHashed()Return passwordHashed, ornullif it is not present.AaaAuthenticationUserConfig.RolegetRole()Return role, ornullif it is not present.StringgetSshKey()Return sshKey, ornullif it is not present.StringgetUsername()Return username, ornullif it is not present.Class<? extends AaaAuthenticationUserConfig>implementedInterface()default @NonNull StringrequirePassword()Return password, guaranteed to be non-null.default @NonNull CryptPasswordTyperequirePasswordHashed()Return passwordHashed, guaranteed to be non-null.default @NonNull AaaAuthenticationUserConfig.RolerequireRole()Return role, guaranteed to be non-null.default @NonNull StringrequireSshKey()Return sshKey, guaranteed to be non-null.default @NonNull StringrequireUsername()Return username, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends AaaAuthenticationUserConfig> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.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
default @NonNull String 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
default @NonNull String 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
default @NonNull CryptPasswordType 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
default @NonNull String 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
default @NonNull AaaAuthenticationUserConfig.Role 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
-
-