Package org.cyclos.entities.system
Interface ICredentials
-
- All Known Subinterfaces:
CredentialAccessor
- All Known Implementing Classes:
CredentialsConfiguration
public interface ICredentialsAccess to credentials usage for a specific action
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Set<CredentialType>getAllowedCredentials()Returns all allowed credential typesdefault AvailabilitygetDeviceAvailability()PasswordTypegetPassword()Returns the password type if a one is alloweddefault AvailabilitygetPasswordAvailability()default AvailabilitygetTotpAvailability()default booleanhasPassword()Indicates whether a password is alloweddefault booleanisDefined()Indicates whether any credential type is defined for usebooleanisDevice()Indicates whether a trusted device is alloweddefault booleanisDeviceOnly()Indicates whether a trusted device is the only allowed credentialdefault booleanisPasswordOnly()Indicates whether a password the only allowed credentialbooleanisTotp()Indicates whether RFC 6238 TOTP is alloweddefault booleanisTotpOnly()Indicates whether RFC 6238 TOTP is the only allowed credential
-
-
-
Method Detail
-
getAllowedCredentials
default Set<CredentialType> getAllowedCredentials()
Returns all allowed credential types
-
getDeviceAvailability
default Availability getDeviceAvailability()
-
getPassword
PasswordType getPassword()
Returns the password type if a one is allowed
-
getPasswordAvailability
default Availability getPasswordAvailability()
-
getTotpAvailability
default Availability getTotpAvailability()
-
hasPassword
default boolean hasPassword()
Indicates whether a password is allowed
-
isDefined
default boolean isDefined()
Indicates whether any credential type is defined for use
-
isDevice
boolean isDevice()
Indicates whether a trusted device is allowed
-
isDeviceOnly
default boolean isDeviceOnly()
Indicates whether a trusted device is the only allowed credential
-
isPasswordOnly
default boolean isPasswordOnly()
Indicates whether a password the only allowed credential
-
isTotp
boolean isTotp()
Indicates whether RFC 6238 TOTP is allowed
-
isTotpOnly
default boolean isTotpOnly()
Indicates whether RFC 6238 TOTP is the only allowed credential
-
-