com.sun.xml.registry.ebxml.util
Class KeystoreUtil

java.lang.Object
  extended bycom.sun.xml.registry.ebxml.util.KeystoreUtil

public class KeystoreUtil
extends java.lang.Object

Provides methods to check that jaxr-ebxml keystore properties are set correctly and keystore file exists.

Author:
Fabian Ritzmann

Constructor Summary
KeystoreUtil()
           
 
Method Summary
static void canReadKeystoreFile(java.io.File keystoreFile)
          Returns if keystore file can be read, throws an exception otherwise
static void createKeystoreDirectory(java.io.File keystoreFile)
          Create keystore directory if it does not already exist
static java.io.File getKeystoreFile()
          Return location of keystore file defined in jaxr-ebxml properties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeystoreUtil

public KeystoreUtil()
Method Detail

getKeystoreFile

public static java.io.File getKeystoreFile()
                                    throws javax.xml.registry.JAXRException
Return location of keystore file defined in jaxr-ebxml properties

Returns:
Path to keystore file
Throws:
javax.xml.registry.JAXRException - Thrown if properties are not set

canReadKeystoreFile

public static void canReadKeystoreFile(java.io.File keystoreFile)
                                throws javax.xml.registry.JAXRException
Returns if keystore file can be read, throws an exception otherwise

Parameters:
keystoreFile - Path to keystore file
Throws:
javax.xml.registry.JAXRException - Thrown if keystore file can not be read

createKeystoreDirectory

public static void createKeystoreDirectory(java.io.File keystoreFile)
                                    throws javax.xml.registry.JAXRException
Create keystore directory if it does not already exist

Parameters:
keystoreFile - Path to keystore file
Throws:
javax.xml.registry.JAXRException - Thrown if directory could not be created


Copyright © 2001-2004 OASIS. All Rights Reserved.