Package org.keycloak.models
Class OTPPolicy
java.lang.Object
org.keycloak.models.OTPPolicy
- All Implemented Interfaces:
 Serializable
- Version:
 - $Revision: 1 $
 - Author:
 - Bill Burke
 - See Also:
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionintintConstructs theotpauth://URI based on the Key-Uri-Format.getKeyURI(RealmModel realm, UserModel user, String secret) Constructs theotpauth://URI based on the Key-Uri-Format.intintgetType()booleanvoidsetAlgorithm(String algorithm) voidsetCodeReusable(boolean isReusable) voidsetDigits(int digits) voidsetInitialCounter(int initialCounter) voidsetLookAheadWindow(int lookAheadWindow) voidsetPeriod(int period) void 
- 
Field Details
- 
logger
protected static final org.jboss.logging.Logger logger - 
type
 - 
algorithm
 - 
initialCounter
protected int initialCounter - 
digits
protected int digits - 
lookAheadWindow
protected int lookAheadWindow - 
period
protected int period - 
isCodeReusable
protected boolean isCodeReusable - 
DEFAULT_POLICY
 - 
DEFAULT_IS_REUSABLE
public static final boolean DEFAULT_IS_REUSABLE- See Also:
 
 - 
REALM_REUSABLE_CODE_ATTRIBUTE
- See Also:
 
 
 - 
 - 
Constructor Details
- 
OTPPolicy
public OTPPolicy() - 
OTPPolicy
 - 
OTPPolicy
 
 - 
 - 
Method Details
- 
getAlgorithmKey
 - 
getType
 - 
setType
 - 
getAlgorithm
 - 
setAlgorithm
 - 
getInitialCounter
public int getInitialCounter() - 
setInitialCounter
public void setInitialCounter(int initialCounter)  - 
getDigits
public int getDigits() - 
setDigits
public void setDigits(int digits)  - 
getLookAheadWindow
public int getLookAheadWindow() - 
setLookAheadWindow
public void setLookAheadWindow(int lookAheadWindow)  - 
getPeriod
public int getPeriod() - 
setPeriod
public void setPeriod(int period)  - 
isCodeReusable
public boolean isCodeReusable() - 
setCodeReusable
public void setCodeReusable(boolean isReusable)  - 
getKeyURI
Constructs theotpauth://URI based on the Key-Uri-Format.- Parameters:
 realm-user-secret-- Returns:
 - the 
otpauth://URI 
 - 
getKeyURI
Constructs theotpauth://URI based on the Key-Uri-Format.- Parameters:
 rawIssuerName-rawAccountName-secret-- Returns:
 - the 
otpauth://URI 
 
 -