public KeyStoreData(String keystorePath,char[] storePass,String certAlias) throws SsoKeyStoreOperationException {
  if (_log.isDebugEnabled()) {
    _log.debug("Loading keystore: " + keystorePath);
  }
  _keystorePath=keystorePath;
  _certAlias=certAlias;
  LOAD_ERROR_MSG="Error while trying to load certificate entry " + _certAlias + " from "+ _keystorePath;
  FileInputStream fis=null;
  try {
    _keyStore=KeyStore.getInstance("JKS");
    fis=new FileInputStream(keystorePath);
    _keyStore.load(fis,storePass);
  }
 catch (  KeyStoreException e) {
    _log.error(LOAD_ERROR_MSG,e);
    throw new SsoKeyStoreOperationException(LOAD_ERROR_MSG,e);
  }
catch (  NoSuchAlgorithmException e) {
    _log.error(LOAD_ERROR_MSG,e);
    throw new SsoKeyStoreOperationException(LOAD_ERROR_MSG,e);
  }
catch (  CertificateException e) {
    _log.error(LOAD_ERROR_MSG,e);
    throw new SsoKeyStoreOperationException(LOAD_ERROR_MSG,e);
  }
catch (  FileNotFoundException e) {
    _log.error(LOAD_ERROR_MSG,e);
    throw new SsoKeyStoreOperationException(LOAD_ERROR_MSG,e);
  }
catch (  IOException e) {
    _log.error(LOAD_ERROR_MSG,e);
    throw new SsoKeyStoreOperationException(LOAD_ERROR_MSG,e);
  }
 finally {
    if (fis != null) {
      try {
        fis.close();
      }
 catch (      IOException e) {
        _log.error(LOAD_ERROR_MSG,e);
      }
    }
  }
}

public KeyStoreData ( String keystorePath , char [ ] storePass , String certAlias ) throws SsoKeyStoreOperationException { if ( _log . isDebugEnabled ( ) ) { _log . debug ( "Loading keystore: " + keystorePath ) ; } _keystorePath = keystorePath ; _certAlias = certAlias ; LOAD_ERROR_MSG = "Error while trying to load certificate entry " + _certAlias + " from " + _keystorePath ; FileInputStream fis = null ; try { _keyStore = KeyStore . getInstance ( "JKS" ) ; fis = new FileInputStream ( keystorePath ) ; _keyStore . load ( fis , storePass ) ; } catch ( KeyStoreException e ) { _log . error ( LOAD_ERROR_MSG , e ) ; throw new SsoKeyStoreOperationException ( LOAD_ERROR_MSG , e ) ; } catch ( NoSuchAlgorithmException e ) { _log . error ( LOAD_ERROR_MSG , e ) ; throw new SsoKeyStoreOperationException ( LOAD_ERROR_MSG , e ) ; } catch ( CertificateException e ) { _log . error ( LOAD_ERROR_MSG , e ) ; throw new SsoKeyStoreOperationException ( LOAD_ERROR_MSG , e ) ; } catch ( FileNotFoundException e ) { _log . error ( LOAD_ERROR_MSG , e ) ; throw new SsoKeyStoreOperationException ( LOAD_ERROR_MSG , e ) ; } catch ( IOException e ) { _log . error ( LOAD_ERROR_MSG , e ) ; throw new SsoKeyStoreOperationException ( LOAD_ERROR_MSG , e ) ; } finally { if ( fis != null ) { try { fis . close ( ) ; } catch ( IOException e ) { _log . error ( LOAD_ERROR_MSG , e ) ; } } } }
creates a keystoredata object .
