Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mule.security
Class AbstractSecurityProvider

    java.lang.Object
      org.mule.security.AbstractSecurityProvider

All Implemented Interfaces:
  Initialisable, NamedObject, SecurityProvider

Direct Known Subclasses:
  AcegiProviderAdapter, JaasSimpleAuthenticationProvider, PGPSecurityProvider, SpringProviderAdapter, TestSingleUserSecurityProvider

    public abstract class AbstractSecurityProvider

extends Object
implements SecurityProvider, NamedObject

Field Summary

Fields inherited from interface org.mule.api.lifecycle.Initialisable
`PHASE_NAME`

Constructor Summary
`AbstractSecurityProvider(String name)`

Method Summary
`SecurityContext` | `createSecurityContext(Authentication authentication)`
`protected void` | `doInitialise()`
`String` | `getName()` Gets the name of the object
`SecurityContextFactory` | `getSecurityContextFactory()`
`void` | `initialise()` Method used to perform any initialisation work.
`void` | `setName(String name)` Sets the name of the object
`void` | `setSecurityContextFactory(SecurityContextFactory securityContextFactory)`
`boolean` | `supports(Class aClass)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface org.mule.api.security.SecurityProvider
`authenticate`

Constructor Detail

### AbstractSecurityProvider

    public AbstractSecurityProvider(String name)

Method Detail

### initialise

    public final 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

### doInitialise

    protected void doInitialise()
                         throws InitialisationException

  Throws:
    `InitialisationException`

### supports

    public boolean supports(Class aClass)

  Specified by:
    `supports` in interface `SecurityProvider`

### createSecurityContext

    public SecurityContext createSecurityContext(Authentication authentication)
                                          throws UnknownAuthenticationTypeException

  Specified by:
    `createSecurityContext` in interface `SecurityProvider`
  Throws:
    `UnknownAuthenticationTypeException`

### getName

    public String getName()

  Description copied from interface: `NamedObject`
  Gets the name of the object

  Specified by:
    `getName` in interface `NamedObject`
  Specified by:
    `getName` in interface `SecurityProvider`
  Returns:
    the name of the object

### setName

    public void setName(String name)

  Description copied from interface: `NamedObject`
  Sets the name of the object

  Specified by:
    `setName` in interface `NamedObject`
  Specified by:
    `setName` in interface `SecurityProvider`
  Parameters:
    `name` - the name of the object

### getSecurityContextFactory

    public SecurityContextFactory getSecurityContextFactory()

### setSecurityContextFactory

    public void setSecurityContextFactory(SecurityContextFactory securityContextFactory)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.