Package org.jboss.aerogear.security.otp

Examples of org.jboss.aerogear.security.otp.Totp


    /**
     * Retrieves the shared secret to the current user logged in
     * @return HTTP response with the OTP URI encoded in QRCode. For example: otpauth://totp/alice@google.com?secret=JBSWY3DPEHPK3PXP
     */
    public Response getSecret() {
        Totp totp = new Totp(secret.get());
        AeroGearUser userInfo = new AeroGearUser();
        userInfo.setUri(totp.uri(loggedUser.get()));

        return Response.ok(userInfo).build();
    }
View Full Code Here


    /**
     * Retrieves the shared secret to the current user logged in
     * @return HTTP response with the OTP URI encoded in QRCode. For example: otpauth://totp/alice@google.com?secret=JBSWY3DPEHPK3PXP
     */
    public Response getSecret() {
        Totp totp = new Totp(secret.get());
        AeroGearUser userInfo = new AeroGearUser();
        userInfo.setUri(totp.uri(loggedUser.get()));

        return Response.ok(userInfo).build();
    }
View Full Code Here

TOP

Related Classes of org.jboss.aerogear.security.otp.Totp

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.