@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00") public class DefaultUserFactor extends AbstractInstanceResource<UserFactor> implements UserFactor
properties
readLock, writeLock
Constructor and Description |
---|
DefaultUserFactor(InternalDataStore dataStore) |
DefaultUserFactor(InternalDataStore dataStore,
Map<String,Object> properties) |
Modifier and Type | Method and Description |
---|---|
UserFactor |
activate()
Activate Factor
The `sms` and `token:software:totp` factor types require activation to complete the enrollment process.
|
UserFactor |
activate(ActivateFactorRequest body)
Activate Factor
The `sms` and `token:software:totp` factor types require activation to complete the enrollment process.
|
void |
delete()
Unenrolls an existing factor for the specified user, allowing the user to enroll a new factor.
|
Date |
getCreated() |
Map<String,Object> |
getEmbedded() |
FactorType |
getFactorType() |
String |
getId() |
Date |
getLastUpdated() |
Map<String,Object> |
getLinks() |
Map<String,Property> |
getPropertyDescriptors() |
FactorProvider |
getProvider() |
Class<? extends Resource> |
getResourceClass()
Returns the class this resource represents.
|
FactorStatus |
getStatus() |
VerifyFactorRequest |
getVerify() |
UserFactor |
setFactorType(FactorType factorType) |
UserFactor |
setProvider(FactorProvider provider) |
UserFactor |
setVerify(VerifyFactorRequest verify) |
VerifyUserFactorResponse |
verify()
Verify MFA Factor
Verifies an OTP for a `token` or `token:hardware` factor
|
VerifyUserFactorResponse |
verify(VerifyFactorRequest body,
String templateId,
Integer tokenLifetimeSeconds,
String xForwardedFor,
String userAgent,
String acceptLanguage)
Verify MFA Factor
Verifies an OTP for a `token` or `token:hardware` factor
|
save
clear, containsKey, containsValue, createPropertyDescriptorMap, createPropertyDescriptorMap, entrySet, equals, get, getDataStore, getDeletedPropertyNames, getInternalProperties, getParamsFromHref, getProperty, getPropertyNames, getResourceHref, getResourceListProperty, getResourceProperty, getUpdatedPropertyNames, hashCode, hasProperty, isDirty, isEmpty, isPrintableProperty, keySet, materialize, put, putAll, remove, setInternalProperties, setProperty, setProperty, setResourceHref, size, toString, values
getBoolean, getBoolean, getBooleanProperty, getCharArray, getDateProperty, getDoubleProperty, getDoubleProperty, getEnumListProperty, getEnumProperty, getEnumProperty, getInt, getInteger, getIntegerList, getIntProperty, getIntProperty, getListProperty, getListProperty, getMap, getMapProperty, getNonEmptyMap, getNullableBoolean, getNullableBooleanProperty, getNumber, getNumberList, getString, getString, getStringList, getStringProperty, setProperty, setProperty
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getResourceHref, setResourceHref
getBoolean, getInteger, getIntegerList, getNumber, getNumberList, getString, getStringList
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public DefaultUserFactor(InternalDataStore dataStore)
public DefaultUserFactor(InternalDataStore dataStore, Map<String,Object> properties)
public Map<String,Property> getPropertyDescriptors()
getPropertyDescriptors
in class AbstractResource
public Class<? extends Resource> getResourceClass()
AbstractInstanceResource
Foo
, in this case this method may return Foo.class
.
(Defaults to getClass()
.)getResourceClass
in class AbstractInstanceResource<UserFactor>
public Map<String,Object> getEmbedded()
getEmbedded
in interface UserFactor
public Map<String,Object> getLinks()
getLinks
in interface UserFactor
public Date getCreated()
getCreated
in interface UserFactor
public FactorType getFactorType()
getFactorType
in interface UserFactor
public UserFactor setFactorType(FactorType factorType)
setFactorType
in interface UserFactor
public String getId()
getId
in interface UserFactor
public Date getLastUpdated()
getLastUpdated
in interface UserFactor
public FactorProvider getProvider()
getProvider
in interface UserFactor
public UserFactor setProvider(FactorProvider provider)
setProvider
in interface UserFactor
public FactorStatus getStatus()
getStatus
in interface UserFactor
public VerifyFactorRequest getVerify()
getVerify
in interface UserFactor
public UserFactor setVerify(VerifyFactorRequest verify)
setVerify
in interface UserFactor
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="DELETE - /api/v1/users/{userId}/factors/{factorId}") public void delete()
delete
in interface Deletable
delete
in interface UserFactor
delete
in class AbstractInstanceResource<UserFactor>
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="POST - /api/v1/users/{userId}/factors/{factorId}/lifecycle/activate") public UserFactor activate(ActivateFactorRequest body)
activate
in interface UserFactor
body
- (optional)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="POST - /api/v1/users/{userId}/factors/{factorId}/lifecycle/activate") public UserFactor activate()
activate
in interface UserFactor
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="POST - /api/v1/users/{userId}/factors/{factorId}/verify") public VerifyUserFactorResponse verify(VerifyFactorRequest body, String templateId, Integer tokenLifetimeSeconds, String xForwardedFor, String userAgent, String acceptLanguage)
verify
in interface UserFactor
body
- (optional)templateId
- (optional)tokenLifetimeSeconds
- (optional, default to 300)xForwardedFor
- (optional)userAgent
- (optional)acceptLanguage
- (optional)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="POST - /api/v1/users/{userId}/factors/{factorId}/verify") public VerifyUserFactorResponse verify()
verify
in interface UserFactor
Copyright © 2017–2023 Okta. All rights reserved.