Package com.sshtools.daemon.platform

Examples of com.sshtools.daemon.platform.NativeAuthenticationProvider


    private static String getNFSHomeDirectory() throws FileNotFoundException {
        try {
            if (Thread.currentThread() instanceof SshThread &&
                    SshThread.hasUserContext()) {
                NativeAuthenticationProvider nap = NativeAuthenticationProvider.getInstance();

                return nap.getHomeDirectory(SshThread.getCurrentThreadUser());
            } else {
                throw new FileNotFoundException("There is no user logged in");
            }
        } catch (IOException e) {
            throw new FileNotFoundException(e.getMessage());
View Full Code Here


    private static String getNFSHomeDirectory() throws FileNotFoundException {
        try {
            if (Thread.currentThread() instanceof SshThread &&
                    SshThread.hasUserContext()) {
                NativeAuthenticationProvider nap = NativeAuthenticationProvider.getInstance();

                return nap.getHomeDirectory(SshThread.getCurrentThreadUser());
            } else {
                throw new FileNotFoundException("There is no user logged in");
            }
        } catch (IOException e) {
            throw new FileNotFoundException(e.getMessage());
View Full Code Here

TOP

Related Classes of com.sshtools.daemon.platform.NativeAuthenticationProvider

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.