Package org.apache.geronimo.common

Examples of org.apache.geronimo.common.GeronimoSecurityException


                "Not implemented for properties file security realm...");
    }

    public void removeFromGroup(String userPrincipal, String groupPrincipal)
            throws GeronimoSecurityException {
        throw new GeronimoSecurityException(
                "Not implemented for properties file security realm...");
    }
View Full Code Here


    public String getPassword(String userPrincipal)
            throws GeronimoSecurityException {
        refreshUsers();
        if (users.getProperty(userPrincipal) == null) {
            log.warn("getPassword() User="+userPrincipal+" does not exist.");
            throw new GeronimoSecurityException("User principal="+userPrincipal+" does not exist.");
        }
        String realPassword = users.getProperty(userPrincipal);
        if (realPassword != null) {
            realPassword = (String) EncryptionManager.decrypt(realPassword);
        }
View Full Code Here

                log.debug("Found password(s) that needed encrypting");
                store(users, serverInfo.resolveServer(getUsersURI()).toURL());
            }
        } catch (Exception e) {
            log.error("encryptAllPasswords failed", e);
            throw new GeronimoSecurityException(e);
        }
    }
View Full Code Here

     */
    protected JAASJettyPrincipal generateDefaultPrincipal(Subject defaultSubject)
            throws GeronimoSecurityException {

        if (defaultSubject == null) {
            throw new GeronimoSecurityException(
                    "Unable to generate default principal");
        }

        JAASJettyPrincipal result = new JAASJettyPrincipal("default");

View Full Code Here

     * @return the default principal
     */
    protected JAASJettyPrincipal generateDefaultPrincipal(DefaultPrincipal defaultPrincipal) throws GeronimoSecurityException {

        if (defaultPrincipal == null) {
            throw new GeronimoSecurityException("Unable to generate default principal");
        }

        JAASJettyPrincipal result = new JAASJettyPrincipal("default");
        Subject defaultSubject = ConfigurationUtil.generateDefaultSubject(defaultPrincipal);

View Full Code Here

                addValve(defaultSubjectValve);

                // if a servlet uses run-as then make sure role desgnates have been provided
                if (hasRunAsServlet()) {
                    if (runAsSource == null) {
                        throw new GeronimoSecurityException("web.xml or annotation specifies a run-as role but no subject configuration supplied for run-as roles");
                    }
                } else {
                    // optimization
                    this.removeInstanceListener(RunAsInstanceListener.class.getName());
                }
View Full Code Here

     */
    public JaasSessionId connectToRealm(String realmName) {
        SecurityRealm realm;
        realm = getRealm(realmName);
        if (realm == null) {
            throw new GeronimoSecurityException("No such realm (" + realmName + ")");
        } else {
            return initializeClient(realm);
        }
    }
View Full Code Here

                }
            }

        } catch (Exception e) {
            log.error("Properties File Login Module - data load failed", e);
            throw new GeronimoSecurityException(e);
        }
    }
View Full Code Here

                }
            }

        } catch (Exception e) {
            log.error("Properties File Login Module - data load failed", e);
            throw new GeronimoSecurityException(e);
        }
    }
View Full Code Here

     * @param classLoader
     * @return the default principal
     */
    public static Subject generateDefaultSubject(DefaultPrincipal defaultPrincipal, ClassLoader classLoader) throws DeploymentException {
        if (defaultPrincipal == null) {
            throw new GeronimoSecurityException("No DefaultPrincipal configuration supplied");
        }
        Subject defaultSubject = new Subject();
        java.security.Principal principal;
        java.security.Principal primaryPrincipal;

View Full Code Here

TOP

Related Classes of org.apache.geronimo.common.GeronimoSecurityException

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.