root
Toggle table of contents
goblin-tasks
Target filter
goblin-tasks
Switch theme
Search in API
Skip to content
root
root
/
fi.utu.tech.powergoblin.tasks.model
/
UserRole
User
Role
goblin-tasks
data
class
UserRole
(
val
userName
:
String
,
val
hashBytes
:
ByteArray
?
=
null
,
val
roles
:
List
<
Role
>
,
val
passwordHash
:
String
=
Base64.getEncoder().encodeToString(hashBytes)
)
Entries consist of username, list of roles, hashed password.
Members
Constructors
User
Role
Link copied to clipboard
goblin-tasks
constructor
(
userName
:
String
,
hashBytes
:
ByteArray
?
=
null
,
roles
:
List
<
Role
>
,
passwordHash
:
String
=
Base64.getEncoder().encodeToString(hashBytes)
)
Properties
hash
Bytes
Link copied to clipboard
goblin-tasks
val
hashBytes
:
ByteArray
?
=
null
password
Hash
Link copied to clipboard
goblin-tasks
val
passwordHash
:
String
roles
Link copied to clipboard
goblin-tasks
val
roles
:
List
<
Role
>
user
Name
Link copied to clipboard
goblin-tasks
val
userName
:
String
Functions
encode
Link copied to clipboard
goblin-tasks
fun
encode
(
)
:
UserRole