Package xregistry

Examples of xregistry.XregistryException


                if(groupObj != null){
                    groupObj.removeAuthorizedResource(resourceID);
                }
            }
        } catch (SQLException e) {
            throw new XregistryException(e);
        }finally{
            globalContext.closeConnection(connection);
        }
       
    }
View Full Code Here


                    }
                }
                return false;
            }
         } catch (SQLException e) {
            throw new XregistryException(e);
        }finally{
            globalContext.closeConnection(connection);
        }
    }
View Full Code Here

                }
                if(propertiesIn != null){
                    properties.load(propertiesIn);
                    propertiesIn.close();
                }else{
                    throw new XregistryException("Can not load configuration, the configuration order " +
                       "1) explict parameter 2) xregistry.properties file on current directory 3) xregistry/xregistry.properties file on classpath");
                }
                return properties;
            } catch (FileNotFoundException e) {
                throw new XregistryException();
            } catch (IOException e) {
                throw new XregistryException();
            }
       }
View Full Code Here

                    config.load(loginPropertiesIn);
                    loginPropertiesIn.close();
                }   
            }
        } catch (FileNotFoundException e) {
            throw new XregistryException();
        } catch (IOException e) {
            throw new XregistryException();
        }
               
        if (!clientSide) {
            loadConfiguration();
            storage = new JdbcStorage(dbUrl, MYSQL_DRIVER);
View Full Code Here

        try {
            if (credential == null) {
                credential = createMyProxyCredentails();
                if (credential == null) {
                    if (isClientSide) {
                        throw new XregistryException(
                                "At the client side, myproxy credentails must present");
                    } else {
                        credential = createCredentials();
                    }
                }
                userDN = credential.getName().toString();
            }
            return credential;
        } catch (GSSException e) {
            throw new XregistryException(e);
        }
    }
View Full Code Here

    public void setCredential(GSSCredential credential) throws XregistryException {
        try {
            this.credential = credential;
            userDN = credential.getName().toString();
        } catch (GSSException e) {
            throw new XregistryException(e);
        }
    }
View Full Code Here

        this.hostcertsKeyFile = findStringProperty(config, SSL_HOST_KEY_FILE, hostcertsKeyFile);
        this.trustedCertsFile = findStringProperty(config, SSL_TRUSTED_CERT_FILE, trustedCertsFile);
        this.dbUrl = findStringProperty(config, DBURL, dbUrl);
        if (dbUrl == null) {
            throw new XregistryException("Database URL for underline database is not defined");
        }
        this.port = findIntegerProperty(config, XregistryOptions.PORT, 6666);
        this.securityEnabled = findBooleanProperty(config, SECURITY_ENABLED, true);
    }
View Full Code Here

    public void closeConnection(Connection connection) throws XregistryException {
        try {
            storage.closeConnection(connection);
        } catch (SQLException e) {
            throw new XregistryException(e);
        }
    }
View Full Code Here

                 System.out.println(line.trim());
                 statement.executeUpdate(line.trim());
             }
         }
        } catch (SQLException e) {
            throw new XregistryException(e);
        } finally{
            closeConnection(connection);
        }
       
    }
View Full Code Here

                        + " with " + lifetime + " lifetime.");

            }
                return proxy;
        } catch (MyProxyException e) {
            throw new XregistryException(e);
        }catch (Exception e) {
            throw new XregistryException(e);
        }
    }
View Full Code Here

TOP

Related Classes of xregistry.XregistryException

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.