[keycloak-user] How to create a custom OTPPolicy?

Known Michael known.michael at gmail.com
Tue Mar 20 04:41:07 EDT 2018


Hello,

I need to create a custom OTPPolicy.

Unfortunately, OTPPolicy policy is created via the constructor and not via
a factory:

    public static OTPPolicy DEFAULT_POLICY = new
OTPPolicy(UserCredentialModel.TOTP, HmacOTP.HMAC_SHA1, 0, 6, 1, 30);

(from the class org.keycloak.models.OTPPolicy)

Any help will be appreciated.


More information about the keycloak-user mailing list