package at.gv.egovernment.moa.spss.server.iaik.config; import iaik.pki.store.certstore.CertStoreTypes; import iaik.pki.store.certstore.directory.DirectoryCertStoreParameters; /** * An implementation of the DirectoryCertStoreParameters interface. * * @see iaik.pki.store.certstore.directory.DirectoryCertStoreParameters * @author Patrick Peck * @version $Id$ */ public class DirectoryCertStoreParametersImpl implements DirectoryCertStoreParameters { /** The root directory of the CertStore. */ private String rootDirectory; /** Whether a new directory may be created. */ private boolean createNew; /** The CertStore ID. */ private String id; /** Whether the CertStore is read-only. */ private boolean readOnly; /** * Create a new DirectoryCertStoreParameterImpl. * * @param id The CertStore ID. * @param rootDirectory The root directory of the CertStore. * @param createNew Whether a new directory may be created. * @param readOnly Whether the CertStore is read-only. */ public DirectoryCertStoreParametersImpl( String id, String rootDirectory, boolean createNew, boolean readOnly) { this.id = id; this.rootDirectory = rootDirectory; this.createNew = createNew; this.readOnly = readOnly; } /** * @see iaik.pki.store.certstore.directory.DirectoryCertStoreParameters#getRootDirectory() */ public String getRootDirectory() { return rootDirectory; } /** * @see iaik.pki.store.certstore.directory.DirectoryCertStoreParameters#createNew() */ public boolean createNew() { return createNew; } /** * @see iaik.pki.store.certstore.CertStoreParameters#getId() */ public String getId() { return id; } /** * @see iaik.pki.store.certstore.CertStoreParameters#isReadOnly() */ public boolean isReadOnly() { return readOnly; } /** * @return CertStoreTypes.DIRECTORY * @see iaik.pki.store.certstore.CertStoreParameters#getType() */ public String getType() { return CertStoreTypes.DIRECTORY; } }