Package org.apache.airavata.credential.store.store.impl

Examples of org.apache.airavata.credential.store.store.impl.CredentialReaderImpl


        RequestData requestData = new RequestData();
        requestData.setMyProxyServerUrl("myproxy.teragrid.org");
        requestData.setMyProxyUserName("******");
        requestData.setMyProxyPassword("*******");
        requestData.setMyProxyLifeTime(3600);
        CredentialReader credentialReader = new CredentialReaderImpl(getDbUtil());
        return new GSISecurityContext(credentialReader, requestData);
    }
View Full Code Here


     * Creates a credential reader using supplied database configurations.
     * @param dbUti The database configurations.
     * @return CredentialReader object.
     */
    public static CredentialReader createCredentialStoreReader(DBUtil dbUti) {
        return new CredentialReaderImpl(dbUti);
    }
View Full Code Here

     * @throws InstantiationException If an error occurred while instantiating jdbc driver
     * @throws IllegalAccessException A security exception accessing jdbc driver.
     */
    public static CredentialReader createCredentialStoreReader() throws ClassNotFoundException,
            ApplicationSettingsException, InstantiationException, IllegalAccessException {
        return new CredentialReaderImpl(DBUtil.getCredentialStoreDBUtil());
    }
View Full Code Here

  }

  @Override
  public boolean isCredentialExist(String gatewayId, String tokenId)
      throws RegistryException {
    credentialReader = new CredentialReaderImpl(getDBConnector());
    try {
      SSHCredential credential = (SSHCredential) credentialReader.getCredential(gatewayId, tokenId);
        if (credential!=null) {
          return true;
        }
View Full Code Here

  @Override
  public String getCredentialPublicKey(String gatewayId, String tokenId)
      throws RegistryException {
   
    credentialReader = new CredentialReaderImpl(getDBConnector());
    try {
      SSHCredential credential = (SSHCredential) credentialReader.getCredential(gatewayId, tokenId);
        if (credential!=null) {
          return new String(credential.getPublicKey());
        }
View Full Code Here

TOP

Related Classes of org.apache.airavata.credential.store.store.impl.CredentialReaderImpl

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.