~tritone-team/tritone/eucalyptus

« back to all changes in this revision

Viewing changes to clc/modules/authentication/src/main/java/com/eucalyptus/auth/util/AbstractKeyStore.java

  • Committer: Bazaar Package Importer
  • Author(s): Dustin Kirkland
  • Date: 2009-12-01 21:09:28 UTC
  • mto: This revision was merged to the branch mainline in revision 75.
  • Revision ID: james.westby@ubuntu.com-20091201210928-o2dvg0ubljhb0ft6
Tags: upstream-1.6.1~bzr1083
ImportĀ upstreamĀ versionĀ 1.6.1~bzr1083

Show diffs side-by-side

added added

removed removed

Lines of Context:
152
152
 
153
153
  public void store( ) throws IOException, GeneralSecurityException {
154
154
    AbstractKeyStore.LOG.info( "Writing back keystore: " + this.fileName );
155
 
    this.keyStore.store( new FileOutputStream( this.fileName ), this.password.toCharArray( ) );
 
155
    FileOutputStream fileOutputStream = new FileOutputStream( this.fileName );
 
156
        this.keyStore.store( fileOutputStream, this.password.toCharArray( ) );
 
157
        fileOutputStream.close();
156
158
  }
157
159
 
158
160
  private void init( ) throws IOException, GeneralSecurityException {