Package io.fathom.cloud.server.auth

Examples of io.fathom.cloud.server.auth.TokenAuth


        if (auth == null) {
            return null;
        }

        if (auth instanceof TokenAuth) {
            TokenAuth tokenAuth = (TokenAuth) auth;

            TokenInfo tokenInfo = tokenAuth.getTokenInfo();
            return tokenInfo;
        } else {
            throw new IllegalArgumentException();
        }
    }
View Full Code Here


    private AuthenticatedUser authenticatedUser = null;

    protected AuthenticatedUser findAuthenticatedUser() throws CloudException {
        if (this.authenticatedUser == null) {
            TokenAuth auth = (TokenAuth) getAuth();
            TokenInfo tokenInfo = auth.getTokenInfo();
            this.authenticatedUser = loginService.authenticate(tokenInfo);
        }
        return this.authenticatedUser;
    }
View Full Code Here

        if (authentication == null) {
            return null;
        }

        TokenInfo tokenInfo = loginService.buildTokenInfo(authentication);
        return new TokenAuth(tokenInfo);
    }
View Full Code Here

        return created.getId();
    }

    public AuthenticatedUser toAuthenticatedUser(Auth auth) throws CloudException {
        TokenAuth tokenAuth = (TokenAuth) auth;
        TokenInfo tokenInfo = tokenAuth.getTokenInfo();
        AuthenticatedUser authenticatedUser = loginService.authenticate(tokenInfo);
        return authenticatedUser;
    }
View Full Code Here

TOP

Related Classes of io.fathom.cloud.server.auth.TokenAuth

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.