Package org.apache.cxf.interceptor.security

Examples of org.apache.cxf.interceptor.security.NamePasswordCallbackHandler


   
    public CallbackHandler getUsernamePasswordHandler(final String username, final String password) {
        if (StringUtils.isEmpty(username)) {
            return null;
        } else {
            return new NamePasswordCallbackHandler(username, password);
        }
    }
View Full Code Here


    public void setRealmName(String name) {
        this.realmName = name;
    }
   
    protected CallbackHandler getCallbackHandler(String name, String password) {
        return new NamePasswordCallbackHandler(name, password);
    }
View Full Code Here

   
    public CallbackHandler getUsernamePasswordHandler(final String username, final String password) {
        if (StringUtils.isEmpty(username)) {
            return null;
        } else {
            return new NamePasswordCallbackHandler(username, password);
        }
    }
View Full Code Here

    public void setRealmName(String name) {
        this.realmName = name;
    }
   
    protected CallbackHandler getCallbackHandler(String name, String password) {
        return new NamePasswordCallbackHandler(name, password);
    }
View Full Code Here

    public void setRealmName(String name) {
        this.realmName = name;
    }
   
    protected CallbackHandler getCallbackHandler(String name, String password) {
        return new NamePasswordCallbackHandler(name, password);
    }
View Full Code Here

    public void setRealmName(String name) {
        this.realmName = name;
    }
   
    protected CallbackHandler getCallbackHandler(String name, String password) {
        return new NamePasswordCallbackHandler(name, password);
    }
View Full Code Here

   
    public CallbackHandler getUsernamePasswordHandler(final String username, final String password) {
        if (StringUtils.isEmpty(username)) {
            return null;
        } else {
            return new NamePasswordCallbackHandler(username, password);
        }
    }
View Full Code Here

    public CallbackHandler create(Message message) {
        AuthorizationPolicy policy = message.get(AuthorizationPolicy.class);
        if (policy == null) {
            return null;
        }
        return new NamePasswordCallbackHandler(policy.getUserName(), policy.getPassword());
    }
View Full Code Here

        SecurityToken token = message.get(SecurityToken.class);
        if (!(token instanceof UsernameToken)) {
            return null;
        }
        UsernameToken ut = (UsernameToken)token;
        return new NamePasswordCallbackHandler(ut.getName(), ut.getPassword());
    }
View Full Code Here

            return null;
        }
        Certificate cert = getCertificate(message);
        String name = certMapper.getUserName(cert);
        String password = nameToPasswordMapper.getPassword(name);
        return new NamePasswordCallbackHandler(name, password);
    }
View Full Code Here

TOP

Related Classes of org.apache.cxf.interceptor.security.NamePasswordCallbackHandler

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.