org.openmdx.security.auth.servlet.simple
Class SimplePrivateKeyProvider

java.lang.Object
  extended by org.openmdx.security.auth.servlet.spi.AbstractHandler
      extended by org.openmdx.security.auth.servlet.simple.SimplePrivateKeyProvider
All Implemented Interfaces:
ServletConfig, org.openmdx.kernel.security.pki.CertificateProvider, org.openmdx.kernel.security.pki.KeyProvider, org.openmdx.kernel.security.resource.Connection, HttpHandler

public class SimplePrivateKeyProvider
extends AbstractHandler
implements org.openmdx.kernel.security.pki.KeyProvider

Simple KeyPovider


Constructor Summary
SimplePrivateKeyProvider()
           
 
Method Summary
 void close()
           
 String getAlias()
           
 Certificate getCertificate()
           
 Key getKey()
           
protected  void init()
          A convenience method which can be overridden so that there's no need to call super.init(config).
 
Methods inherited from class org.openmdx.security.auth.servlet.spi.AbstractHandler
debugDefault, destroy, endBody, endDocument, endHead, getInitParameter, getInitParameter, getInitParameter, getInitParameter, getInitParameter, getInitParameterNames, getServletContext, getServletName, init, isDebug, log, log, startBody, startDocument, startHead, writeEncoded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePrivateKeyProvider

public SimplePrivateKeyProvider()
Method Detail

init

protected void init()
             throws ServletException
Description copied from class: AbstractHandler
A convenience method which can be overridden so that there's no need to call super.init(config).

Instead of overriding init(ServletConfig), simply override this method and it will be called by AbstractHandler.init(ServletConfig).

Overrides:
init in class AbstractHandler
Throws:
ServletException

getAlias

public String getAlias()
Specified by:
getAlias in interface org.openmdx.kernel.security.pki.CertificateProvider

getKey

public Key getKey()
           throws KeyException
Specified by:
getKey in interface org.openmdx.kernel.security.pki.KeyProvider
Throws:
KeyException

getCertificate

public Certificate getCertificate()
                           throws GeneralSecurityException
Specified by:
getCertificate in interface org.openmdx.kernel.security.pki.CertificateProvider
Throws:
GeneralSecurityException

close

public void close()
Specified by:
close in interface org.openmdx.kernel.security.resource.Connection


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