Package org.uberfire.security.server

Examples of org.uberfire.security.server.UserPassSecurityContext


    }

    @Override
    public Credential buildCredential( SecurityContext context ) {

        final UserPassSecurityContext basicSecurityContext = checkInstanceOf( "context", context, UserPassSecurityContext.class );

        return new UsernamePasswordCredential( basicSecurityContext.getUsername(), basicSecurityContext.getPassword() );
    }
View Full Code Here


        authProvider.initialize( options );
    }

    @Override
    public Subject authenticate( final SecurityContext context ) throws AuthenticationException {
        final UserPassSecurityContext userPassContext = checkInstanceOf( "context", context, UserPassSecurityContext.class );

        final Principal principal;

        final Credential credential = scheme.buildCredential( userPassContext );
View Full Code Here

                    @Override
                    public boolean authenticate( String username,
                                                 String password,
                                                 Session session ) {
                        try {
                            final org.uberfire.security.Subject result = authenticationManager.authenticate( new UserPassSecurityContext( null, username, password ) );
                            if ( result != null ) {
                                session.setSubject( new SubjectWrapper( result ) );
                            }
                            return result != null;
                        } catch ( final Exception ignored ) {
View Full Code Here

TOP

Related Classes of org.uberfire.security.server.UserPassSecurityContext

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.