Examples of AeroGearUser


Examples of org.jboss.aerogear.security.model.AeroGearUser

import org.picketlink.idm.model.User;

public class Converter {

    public static AeroGearUser convertToAerogearUser(User user){
        AeroGearUser aeroGearUser = new AeroGearUser();
        aeroGearUser.setUsername(user.getLoginName());
        aeroGearUser.setEmail(user.getEmail());
        aeroGearUser.setFirstName(user.getFirstName());
        aeroGearUser.setLastName(user.getLastName());
        return aeroGearUser;
    }
View Full Code Here

Examples of org.jboss.aerogear.security.model.AeroGearUser

     * 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

Examples of org.jboss.aerogear.security.model.AeroGearUser

     * 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
Copyright © 2018 www.massapi.com. 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.