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

## com.caucho.security
Interface SecurityContextProvider

All Known Implementing Classes:
  AbstractRequest

public interface SecurityContextProvider

Defines the interface any security provider must implement.

Method Summary
`java.security.Principal` | `getUserPrincipal()` Returns the Principal for the context.
`boolean` | `isUserInRole(java.lang.String roleName)` Returns true if the user principal plays the named role.

Method Detail

### getUserPrincipal

    public java.security.Principal getUserPrincipal()
                                             throws SecurityContextException

  Returns the Principal for the context.
  Returns:
    the principal in the context or null.

### isUserInRole

    public boolean isUserInRole(java.lang.String roleName)
                         throws SecurityContextException

  Returns true if the user principal plays the named role.
  Parameters:
    `roleName` - the role to test against.

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