org.mule.module.pgp
Class PGPSecurityProvider

java.lang.Object
  extended by org.mule.module.pgp.PGPSecurityProvider
All Implemented Interfaces:
Initialisable, SecurityProvider

public class PGPSecurityProvider
extends Object
implements SecurityProvider


Field Summary
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Constructor Summary
PGPSecurityProvider()
           
 
Method Summary
 Authentication authenticate(Authentication authentication)
           
 SecurityContext createSecurityContext(Authentication auth)
           
 PGPKeyRing getKeyManager()
           
 String getName()
           
 void initialise()
          Method used to perform any initialisation work.
 void setKeyManager(PGPKeyRing keyManager)
           
 void setName(String name)
           
 boolean supports(Class aClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PGPSecurityProvider

public PGPSecurityProvider()
Method Detail

setName

public void setName(String name)
Specified by:
setName in interface SecurityProvider

getName

public String getName()
Specified by:
getName in interface SecurityProvider

authenticate

public Authentication authenticate(Authentication authentication)
                            throws SecurityException
Specified by:
authenticate in interface SecurityProvider
Throws:
SecurityException

supports

public boolean supports(Class aClass)
Specified by:
supports in interface SecurityProvider

createSecurityContext

public SecurityContext createSecurityContext(Authentication auth)
                                      throws UnknownAuthenticationTypeException
Specified by:
createSecurityContext in interface SecurityProvider
Throws:
UnknownAuthenticationTypeException

initialise

public void initialise()
                throws InitialisationException
Description copied from interface: Initialisable
Method used to perform any initialisation work. If a fatal error occurs during initialisation an InitialisationException should be thrown, causing the Mule instance to shutdown. If the error is recoverable, say by retrying to connect, a RecoverableException should be thrown. There is no guarantee that by throwing a Recoverable exception that the Mule instance will not shut down.

Specified by:
initialise in interface Initialisable
Throws:
InitialisationException - if a fatal error occurs causing the Mule instance to shutdown
RecoverableException - if an error occurs that can be recovered from

getKeyManager

public PGPKeyRing getKeyManager()

setKeyManager

public void setKeyManager(PGPKeyRing keyManager)


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.