eu.emi.client.security.util
Class KeystoreChecker

java.lang.Object
  extended by eu.emi.client.security.util.KeystoreChecker

public class KeystoreChecker
extends Object

Checks if provided truststore/keystore settings are valid.


Constructor Summary
KeystoreChecker()
           
 
Method Summary
static String findAlias(KeyStore ks)
           
static void validateKeystore(String file, String password, String keyPassword, String type, String alias)
           
static void validateTruststore(String file, String password, String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeystoreChecker

public KeystoreChecker()
Method Detail

findAlias

public static String findAlias(KeyStore ks)
                        throws KeyStoreException
Throws:
KeyStoreException

validateTruststore

public static void validateTruststore(String file,
                                      String password,
                                      String type)
                               throws Exception
Throws:
Exception

validateKeystore

public static void validateKeystore(String file,
                                    String password,
                                    String keyPassword,
                                    String type,
                                    String alias)
                             throws Exception
Throws:
Exception


Copyright © 2012 EMI. All Rights Reserved.