org.openmdx.base.security.pki
Class DeployedKeyProvider

java.lang.Object
  extended by org.openmdx.base.security.pki.DeployedCertificateProvider
      extended by org.openmdx.base.security.pki.DeployedKeyProvider
All Implemented Interfaces:
CertificateProvider, KeyProvider, Connection

public class DeployedKeyProvider
extends DeployedCertificateProvider
implements KeyProvider

Deployed Key Provider


Constructor Summary
DeployedKeyProvider()
          Constructor
DeployedKeyProvider(String jndiName)
          Constructor
 
Method Summary
 void close()
          Closes this connection and releases any system resources associated with it.
protected  Connection getDelegate()
          Retrieve the connection
 Key getKey()
          Retrieve this provider's Key
 
Methods inherited from class org.openmdx.base.security.pki.DeployedCertificateProvider
getAlias, getCertificate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openmdx.kernel.security.pki.CertificateProvider
getAlias, getCertificate
 
Methods inherited from interface org.openmdx.kernel.security.resource.Connection
close
 

Constructor Detail

DeployedKeyProvider

public DeployedKeyProvider()
                    throws NamingException
Constructor

Throws:
NamingException

DeployedKeyProvider

public DeployedKeyProvider(String jndiName)
                    throws NamingException
Constructor

Throws:
NamingException
Method Detail

getKey

public Key getKey()
           throws GeneralSecurityException
Description copied from interface: KeyProvider
Retrieve this provider's Key

Specified by:
getKey in interface KeyProvider
Returns:
this provider's Key
Throws:
GeneralSecurityException

getDelegate

protected Connection getDelegate()
                          throws GeneralSecurityException
Retrieve the connection

Returns:
Throws:
GeneralSecurityException

close

public void close()
Description copied from interface: Connection
Closes this connection and releases any system resources associated with it. If the connection is already closed then invoking this method has no effect.

Specified by:
close in interface Connection


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.