mx.bigdata.sat.security
Class PrivateKeyLoader

java.lang.Object
  extended by mx.bigdata.sat.security.PrivateKeyLoader
All Implemented Interfaces:
KeyLoader

public class PrivateKeyLoader
extends Object
implements KeyLoader

Created with IntelliJ IDEA. User: Gerardo Aquino Date: 3/06/13


Constructor Summary
PrivateKeyLoader(InputStream privateKeyInputStream, String keyPassword)
           
PrivateKeyLoader(String privateKeyLocation, String keyPassword)
           
 
Method Summary
 void setPrivateKey(InputStream privateKeyInputStream, String keyPassword)
           
 void setPrivateKey(String privateKeyLocation, String keyPassword)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface mx.bigdata.sat.security.KeyLoader
getKey
 

Constructor Detail

PrivateKeyLoader

public PrivateKeyLoader(String privateKeyLocation,
                        String keyPassword)

PrivateKeyLoader

public PrivateKeyLoader(InputStream privateKeyInputStream,
                        String keyPassword)
Method Detail

setPrivateKey

public void setPrivateKey(String privateKeyLocation,
                          String keyPassword)
Parameters:
privateKeyLocation - private key located in filesystem
keyPassword - private key password
Throws:
KeyException - thrown when any security exception occurs

setPrivateKey

public void setPrivateKey(InputStream privateKeyInputStream,
                          String keyPassword)
Parameters:
privateKeyInputStream - private key's input stream
keyPassword - private key password
Throws:
KeyException - thrown when any security exception occurs


Copyright © 2010-2013. All Rights Reserved.