Package com.rexsl.page.auth

Examples of com.rexsl.page.auth.Identity


    /**
     * As identity.
     * @return The identity
     */
    public Identity asIdentity() {
        return new Identity() {
            @Override
            public URN urn() {
                return RestUser.this.origin.identity();
            }
            @Override
View Full Code Here


    /**
     * Get current user.
     * @return Name of the user
     */
    protected final User user() {
        final Identity identity = this.auth().identity();
        User user;
        if (identity.equals(Identity.ANONYMOUS)) {
            user = User.ANONYMOUS;
        } else {
            user = new RestUser(identity);
        }
        return user;
View Full Code Here

TOP

Related Classes of com.rexsl.page.auth.Identity

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.