Package org.apache.geronimo.security.jaas

Examples of org.apache.geronimo.security.jaas.UsernamePasswordCredential


        if (subject == null) subject = Subject.getSubject(acc);

        if (subject != null) {
            Iterator iterator = subject.getPrivateCredentials(UsernamePasswordCredential.class).iterator();
            while (iterator.hasNext()) {
                UsernamePasswordCredential key = (UsernamePasswordCredential) iterator.next();
                if (username == null || username.equals(key.getUsername())) {
                    return key;
                }
            }

        }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.security.jaas.UsernamePasswordCredential

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.