Class UserAccount
- java.lang.Object
-
- de.openknowledge.authentication.domain.user.UserAccount
-
public class UserAccount extends Object
-
-
Constructor Summary
Constructors Constructor Description UserAccount(EmailAddress theEmailAddress)UserAccount for user in keycloak with email address and passwordUserAccount(EmailAddress theEmailAddress, Password thePassword)UserAccount for user in keycloak with email address and passwordUserAccount(Username theUsername, EmailAddress theEmailAddress, Password thePassword)UserAccount for user in keycloak with username, email address and password
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttribute(Attribute theAttribute)TokenasToken(Issuer issuer)TokenasToken(Issuer issuer, Integer timeToLive)TokenasToken(Issuer issuer, Integer timeToLive, TimeUnit timeUnit)voidemailVerified()booleanequals(Object o)List<Attribute>getAttributes()EmailAddressgetEmailAddress()BooleangetEmailVerified()UserIdentifiergetIdentifier()NamegetName()PasswordgetPassword()UsernamegetUsername()inthashCode()voidsetName(Name aName)StringtoString()
-
-
-
Constructor Detail
-
UserAccount
public UserAccount(EmailAddress theEmailAddress)
UserAccount for user in keycloak with email address and password- Parameters:
theEmailAddress- - the keycloak email address and the username
-
UserAccount
public UserAccount(EmailAddress theEmailAddress, Password thePassword)
UserAccount for user in keycloak with email address and password- Parameters:
theEmailAddress- - the keycloak email address and the usernamethePassword- - the keycloak password
-
UserAccount
public UserAccount(Username theUsername, EmailAddress theEmailAddress, Password thePassword)
UserAccount for user in keycloak with username, email address and password- Parameters:
theUsername- - the keycloak usernametheEmailAddress- - the keycloak email addressthePassword- - the keycloak password
-
-
Method Detail
-
getIdentifier
public UserIdentifier getIdentifier()
-
getUsername
public Username getUsername()
-
getPassword
public Password getPassword()
-
getEmailAddress
public EmailAddress getEmailAddress()
-
getName
public Name getName()
-
getEmailVerified
public Boolean getEmailVerified()
-
setName
public void setName(Name aName)
-
addAttribute
public void addAttribute(Attribute theAttribute)
-
emailVerified
public void emailVerified()
-
-