Examples of JAASRealm


Examples of org.apache.catalina.realm.JAASRealm

    public Realm getRealm() {
        Realm configured=super.getRealm();
        // If no set realm has been called - default to JAAS
        // This can be overriden at engine, context and host level 
        if( configured==null ) {
            configured=new JAASRealm();
            this.setRealm( configured );
        }
        return configured;
    }
View Full Code Here

Examples of org.apache.catalina.realm.JAASRealm

    public Realm getRealm() {
        Realm configured=super.getRealm();
        // If no set realm has been called - default to JAAS
        // This can be overridden at engine, context and host level 
        if( configured==null ) {
            configured=new JAASRealm();
            this.setRealm( configured );
        }
        return configured;
    }
View Full Code Here

Examples of org.apache.catalina.realm.JAASRealm

    public Realm getRealm() {
        Realm configured=super.getRealm();
        // If no set realm has been called - default to JAAS
        // This can be overridden at engine, context and host level 
        if( configured==null ) {
            configured=new JAASRealm();
            this.setRealm( configured );
        }
        return configured;
    }
View Full Code Here

Examples of org.apache.catalina.realm.JAASRealm

    public Realm getRealm() {
        Realm configured=super.getRealm();
        // If no set realm has been called - default to JAAS
        // This can be overriden at engine, context and host level 
        if( configured==null ) {
            configured=new JAASRealm();
            this.setRealm( configured );
        }
        return configured;
    }
View Full Code Here

Examples of org.apache.catalina.realm.JAASRealm

    public Realm getRealm() {
        Realm configured=super.getRealm();
        // If no set realm has been called - default to JAAS
        // This can be overridden at engine, context and host level 
        if( configured==null ) {
            configured=new JAASRealm();
            this.setRealm( configured );
        }
        return configured;
    }
View Full Code Here

Examples of org.apache.catalina.realm.JAASRealm

    public Realm getRealm() {
        Realm configured=super.getRealm();
        // If no set realm has been called - default to JAAS
        // This can be overriden at engine, context and host level 
        if( configured==null ) {
            configured=new JAASRealm();
            this.setRealm( configured );
        }
        return configured;
    }
View Full Code Here

Examples of org.apache.catalina.realm.JAASRealm

     */
    public String createJAASRealm(String parent,String appName,String userClassNames,String roleClassNames,String useContextClassLoader)
        throws Exception {

         // Create a new JAASRealm instance
        JAASRealm realm = new JAASRealm();
        realm.setAppName(appName);
        realm.setUserClassNames(userClassNames);
        realm.setRoleClassNames(roleClassNames);
        if("true".equals(useContextClassLoader)||"TRUE".equals(useContextClassLoader)){
            realm.setUseContextClassLoader(true);
        }
        else{
            realm.setUseContextClassLoader(false);
        }
        // Add the new instance to its parent component
        ObjectName pname = new ObjectName(parent);
        ContainerBase containerBase = getParentContainerFromParent(pname);
        // Add the new instance to its parent component
        containerBase.setRealm(realm);
        // Return the corresponding MBean name
        ObjectName oname = realm.getObjectName();

        if (oname != null) {
            return (oname.toString());
        } else {
            return null;
View Full Code Here

Examples of org.apache.felix.karaf.jaas.config.JaasRealm

    public void unregister(JaasRealm realm, Map<String,?> properties) {
        realms.remove(realm);
    }

    public AppConfigurationEntry[] getAppConfigurationEntry(String name) {
        JaasRealm realm = null;
        for (JaasRealm r : realms) {
            if (r.getName().equals(name)) {
                if (realm == null || r.getRank() > realm.getRank()) {
                    realm = r;
                }
            }
        }
        if (realm != null) {
            return realm.getEntries();
        }
        return null;
    }
View Full Code Here

Examples of org.apache.karaf.jaas.config.JaasRealm

     *
     * @return
     * @throws Exception
     */
    protected Object doExecute() throws Exception {
        JaasRealm realm = (JaasRealm) session.get(JAAS_REALM);
        AppConfigurationEntry entry = (AppConfigurationEntry) session.get(JAAS_ENTRY);
        Queue commandQueue = (Queue) session.get(JAAS_CMDS);

        if (realm != null && entry != null) {
            if (commandQueue != null) {
View Full Code Here

Examples of org.apache.karaf.jaas.config.JaasRealm

     *
     * @param realmName
     * @return
     */
    public JaasRealm findRealmByNameOrIndex(String realmName, int index) {
        JaasRealm realm = null;
        if (realms != null) {
            for (int i=1; i <= realms.size();i++) {
                if (realms.get(i-1).getName().equals(realmName) || index == i)
                    return realms.get(i-1);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.