at.gv.egovernment.moa.spss.server.iaik.pki.store.truststore
Class TrustStoreProfileImpl

java.lang.Object
  |
  +--at.gv.egovernment.moa.spss.server.iaik.pki.store.truststore.TrustStoreProfileImpl
All Implemented Interfaces:
iaik.servertools.observer.Observable, iaik.pki.store.truststore.TrustStoreProfile

public class TrustStoreProfileImpl
extends Object
implements iaik.pki.store.truststore.TrustStoreProfile

An implementation of the TrustStoreProfile interface, using data from the MOA configuration.

Version:
$Id$
Author:
Patrick Peck
See Also:
TrustStoreProfile

Constructor Summary
TrustStoreProfileImpl(ConfigurationProvider config, String trustProfileId)
          Create a new TrustStoreProfileImpl.
 
Method Summary
 void addObserver(iaik.servertools.observer.Observer observer)
           
 String getType()
           
 String getURI()
           
 void notify(iaik.servertools.observer.NotificationData notificationData)
           
 boolean removeObserver(iaik.servertools.observer.Observer observer)
           
protected  void setType(String type)
          Sets the the trust store type.
protected  void setURI(String URI)
          Sets the trust store URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrustStoreProfileImpl

public TrustStoreProfileImpl(ConfigurationProvider config,
                             String trustProfileId)
                      throws MOAApplicationException
Create a new TrustStoreProfileImpl.
Parameters:
config - The MOA configuration data, from which trust store configuration data is read.
trustProfileId - The trust profile id on which this TrustStoreProfile is based.
Throws:
MOAApplicationException - The trustProfileId could not be found in the MOA configuration.
Method Detail

getType

public String getType()
Specified by:
getType in interface iaik.pki.store.truststore.TrustStoreProfile
See Also:
TrustStoreProfile.getType()

setType

protected void setType(String type)
Sets the the trust store type.
Parameters:
type - The trust store type to set.

getURI

public String getURI()
Specified by:
getURI in interface iaik.pki.store.truststore.TrustStoreProfile
See Also:
TrustStoreProfile.getURI()

setURI

protected void setURI(String URI)
Sets the trust store URI.
Parameters:
URI - The trust store URI to set.

addObserver

public void addObserver(iaik.servertools.observer.Observer observer)
Specified by:
addObserver in interface iaik.servertools.observer.Observable
See Also:
iaik.utils.observer.Observable#addObserver(Observer)

removeObserver

public boolean removeObserver(iaik.servertools.observer.Observer observer)
Specified by:
removeObserver in interface iaik.servertools.observer.Observable
See Also:
iaik.utils.observer.Observable#removeObserver(Observer)

notify

public void notify(iaik.servertools.observer.NotificationData notificationData)
Specified by:
notify in interface iaik.servertools.observer.Observable
See Also:
iaik.utils.observer.Observable#notify(NotificationData)