Package org.cyclos.entities.system
Class CredentialsConfiguration
- java.lang.Object
-
- org.cyclos.entities.system.CredentialsConfiguration
-
- All Implemented Interfaces:
ICredentials
@Embeddable public class CredentialsConfiguration extends Object implements ICredentials
Configuration for possible credentials
-
-
Constructor Summary
Constructors Constructor Description CredentialsConfiguration()CredentialsConfiguration(PasswordType password)CredentialsConfiguration(PasswordType password, Boolean device, Boolean totp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PasswordTypegetPassword()Returns the password type if a one is allowedbooleanisDevice()Indicates whether a trusted device is allowedbooleanisTotp()Indicates whether RFC 6238 TOTP is allowedvoidsetDevice(boolean device)voidsetPassword(PasswordType password)voidsetTotp(boolean totp)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.system.ICredentials
getAllowedCredentials, getDeviceAvailability, getPasswordAvailability, getTotpAvailability, hasPassword, isDefined, isDeviceOnly, isPasswordOnly, isTotpOnly
-
-
-
-
Constructor Detail
-
CredentialsConfiguration
public CredentialsConfiguration()
-
CredentialsConfiguration
public CredentialsConfiguration(PasswordType password)
-
CredentialsConfiguration
public CredentialsConfiguration(PasswordType password, Boolean device, Boolean totp)
-
-
Method Detail
-
getPassword
public PasswordType getPassword()
Description copied from interface:ICredentialsReturns the password type if a one is allowed- Specified by:
getPasswordin interfaceICredentials
-
isDevice
public boolean isDevice()
Description copied from interface:ICredentialsIndicates whether a trusted device is allowed- Specified by:
isDevicein interfaceICredentials
-
isTotp
public boolean isTotp()
Description copied from interface:ICredentialsIndicates whether RFC 6238 TOTP is allowed- Specified by:
isTotpin interfaceICredentials
-
setDevice
public void setDevice(boolean device)
-
setPassword
public void setPassword(PasswordType password)
-
setTotp
public void setTotp(boolean totp)
-
-