public class SecovidSTPParam extends Object
Constructor and Description |
---|
SecovidSTPParam() |
Modifier and Type | Method and Description |
---|---|
Date |
getStpExpires() |
Integer |
getStpUsage() |
String |
getUserId() |
boolean |
isStpPasswordRequired() |
void |
setStpExpires(Date stpExpires)
The
stpExpires defines the date and time until the STP to create will be valid. |
void |
setStpPasswordRequired(boolean stpPasswordRequired)
A flag indicating if the STP needs a password for authentication process.
|
void |
setStpUsage(Integer stpUsage)
The STP usage counter to define for how many times the STP to create can be used maximally.
|
void |
setUserId(String userId)
The ID of the
SecovidUser for which the STP shall be created and assigned to. |
public String getUserId()
public void setUserId(String userId)
SecovidUser
for which the STP shall be created and assigned to.userId
- - String - the userId to setpublic Integer getStpUsage()
public void setStpUsage(Integer stpUsage)
stpExpires
is not any longer valid, the stpUsage
counter will be ignored and vice versa.stpUsage
counter will be decremented to 0 and
therefore will not be usable any longer.stpUsage
- the stpUsage to setpublic Date getStpExpires()
public void setStpExpires(Date stpExpires)
stpExpires
defines the date and time until the STP to create will be valid. After this time the STP will not be usable any longer.stpUsage
counter is decremented to 0 the stpExpires
will be ignored and vice versa.stpExpires
- the stpExpires to setpublic boolean isStpPasswordRequired()
public void setStpPasswordRequired(boolean stpPasswordRequired)
stpUsage
is minimally set to 2. If not set, the stpUsage
counter will be reset to 2. If the must change flag
was set to true, the user will get a MUST_CHANGE challenge where the user is asked to change the password before he is enabled to login.stpPasswordRequired
- the stpPasswordRequired to setCopyright © 2022 KOBIL Systems GmbH. All rights reserved.