Examples of EncryptionSupport


Examples of org.apache.karaf.jaas.modules.encryption.EncryptionSupport

        this.roleDiscriminator = (String) options.get("role.discriminator");
        this.debug = Boolean.parseBoolean((String) options.get("debug"));
        this.detailedLoginExcepion = Boolean.parseBoolean((String) options.get("detailed.login.exception"));
        // the bundle context is set in the Config JaasRealm by default
        this.bundleContext = (BundleContext) options.get(BundleContext.class.getName());
        encryptionSupport = new EncryptionSupport(options);
    }
View Full Code Here

Examples of org.apache.karaf.jaas.modules.encryption.EncryptionSupport

        this.roleDiscriminator = (String) options.get("role.discriminator");
        this.debug = Boolean.parseBoolean((String) options.get("debug"));
        this.detailedLoginExcepion = Boolean.parseBoolean((String) options.get("detailed.login.exception"));
        // the bundle context is set in the Config JaasRealm by default
        this.bundleContext = (BundleContext) options.get(BundleContext.class.getName());
        encryptionSupport = new EncryptionSupport(options);
    }
View Full Code Here

Examples of org.apache.karaf.jaas.modules.encryption.EncryptionSupport

        String selectUsersQuery = (String) options.get(JDBCLoginModule.PASSWORD_QUERY);
        String selectRolesQuery = (String) options.get(JDBCLoginModule.ROLE_QUERY);

        try {
            DataSource dataSource = (DataSource) JDBCUtils.createDatasource(bundleContext, datasourceURL);
            EncryptionSupport encryptionSupport = new EncryptionSupport(options);
            instance = new JDBCBackingEngine(dataSource, encryptionSupport);
            if(addUserStatement != null) {
                instance.setAddUserStatement(addUserStatement);
            }
            if(addRoleStatement != null) {
View Full Code Here

Examples of org.apache.karaf.jaas.modules.encryption.EncryptionSupport

        File f = new File(usersFile);
        Properties users;
        try {
            users = new Properties(f);
            EncryptionSupport encryptionSupport = new EncryptionSupport(options);
            engine = new PropertiesBackingEngine(users, encryptionSupport);
        } catch (IOException ioe) {
            LOGGER.warn("Cannot open users file: {}", usersFile);
        } finally {
            return engine;
View Full Code Here

Examples of org.apache.karaf.jaas.modules.encryption.EncryptionSupport

        this.roleDiscriminator = (String) options.get("role.discriminator");
        this.debug = Boolean.parseBoolean((String) options.get("debug"));
        this.detailedLoginExcepion = Boolean.parseBoolean((String) options.get("detailed.login.exception"));
        // the bundle context is set in the Config JaasRealm by default
        this.bundleContext = (BundleContext) options.get(BundleContext.class.getName());
        encryptionSupport = new EncryptionSupport(options);
    }
View Full Code Here

Examples of org.apache.karaf.jaas.modules.encryption.EncryptionSupport

        File f = new File(usersFile);
        Properties users;
        try {
            users = new Properties(f);
            EncryptionSupport encryptionSupport = new EncryptionSupport(options);
            engine = new PropertiesBackingEngine(users, encryptionSupport);
        } catch (IOException ioe) {
            logger.warn("Cannot open users file:" + usersFile);
        } finally {
            return engine;
View Full Code Here

Examples of org.apache.karaf.jaas.modules.encryption.EncryptionSupport

        this.roleDiscriminator = (String) options.get("role.discriminator");
        this.debug = Boolean.parseBoolean((String) options.get("debug"));
        this.detailedLoginExcepion = Boolean.parseBoolean((String) options.get("detailed.login.exception"));
        // the bundle context is set in the Config JaasRealm by default
        this.bundleContext = (BundleContext) options.get(BundleContext.class.getName());
        encryptionSupport = new EncryptionSupport(options);
    }
View Full Code Here

Examples of org.apache.karaf.jaas.modules.encryption.EncryptionSupport

    private final long period;

    private final Timer timer = new  Timer();

    public AutoEncryptionSupport(Map options) {
        this.encryptionSupport = new EncryptionSupport(options);
        this.usersFileName = (String) options.get(PropertiesLoginModule.USER_FILE);
        this.usersFile = new File(usersFileName).getAbsoluteFile();
        Object period = options.get(PERIOD);
        this.period = period != null ? Long.parseLong(period.toString()) : 60 * 1000l;
    }
View Full Code Here

Examples of org.apache.karaf.jaas.modules.encryption.EncryptionSupport

        File f = new File(usersFile);
        Properties users;
        try {
            users = new Properties(f);
            EncryptionSupport encryptionSupport = new EncryptionSupport(options);
            engine = new PropertiesBackingEngine(users, encryptionSupport);
        } catch (IOException ioe) {
            logger.warn("Cannot open users file:" + usersFile);
        } finally {
            return engine;
View Full Code Here

Examples of org.apache.karaf.jaas.modules.encryption.EncryptionSupport

        this.roleDiscriminator = (String) options.get("role.discriminator");
        this.debug = Boolean.parseBoolean((String) options.get("debug"));
        this.detailedLoginExcepion = Boolean.parseBoolean((String) options.get("detailed.login.exception"));
        // the bundle context is set in the Config JaasRealm by default
        this.bundleContext = (BundleContext) options.get(BundleContext.class.getName());
        encryptionSupport = new EncryptionSupport(options);
    }
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.