| Package | Description |
|---|---|
| org.pac4j.core.client | |
| org.pac4j.core.client.direct | |
| org.pac4j.core.client.finder | |
| org.pac4j.core.config | |
| org.pac4j.core.engine |
| Modifier and Type | Class and Description |
|---|---|
class |
BaseClient<C extends Credentials,U extends CommonProfile>
This class is the default implementation of an authentication client (whatever the mechanism).
|
class |
DirectClient<C extends Credentials,U extends CommonProfile>
Direct client: credentials are passed and authentication occurs for every HTTP request.
|
class |
IndirectClient<C extends Credentials,U extends CommonProfile>
Indirect client: the requested protected URL is saved, the user is redirected to the identity provider for login and
back to the application after the sucessful authentication and finally to the originally requested URL.
|
| Modifier and Type | Method and Description |
|---|---|
<C extends Client> |
Clients.findClient(Class<C> clazz)
Return the right client according to the specific class.
|
| Modifier and Type | Method and Description |
|---|---|
Client |
Clients.findClient(String name)
Return the right client according to the specific name.
|
Client |
Clients.findClient(WebContext context)
Return the right client according to the web context.
|
Client |
Clients.getDefaultClient() |
| Modifier and Type | Method and Description |
|---|---|
List<Client> |
Clients.findAllClients()
Find all the clients.
|
List<Client> |
Clients.getClients() |
| Modifier and Type | Method and Description |
|---|---|
void |
Clients.setClients(Client... clients) |
void |
Clients.setDefaultClient(Client defaultClient)
Set the default client (can be
null). |
| Modifier and Type | Method and Description |
|---|---|
void |
Clients.setClients(List<Client> clients) |
| Constructor and Description |
|---|
Clients(Client... clients) |
Clients(Client client) |
Clients(String callbackUrl,
Client... clients) |
Clients(String callbackUrl,
Client client) |
| Constructor and Description |
|---|
Clients(List<Client> clients) |
Clients(String callbackUrl,
List<Client> clients) |
| Modifier and Type | Class and Description |
|---|---|
class |
AnonymousClient
Anonymous client.
|
| Modifier and Type | Method and Description |
|---|---|
List<Client> |
DefaultClientFinder.find(Clients clients,
WebContext context,
String clientNames) |
List<Client> |
ClientFinder.find(Clients clients,
WebContext context,
String clientNames) |
| Constructor and Description |
|---|
Config(Client... clients) |
Config(Client client) |
Config(Client client,
Map<String,Authorizer> authorizers) |
Config(Map<String,Authorizer> authorizers,
Client... clients) |
Config(String callbackUrl,
Client... clients) |
Config(String callbackUrl,
Client client) |
Config(String callbackUrl,
Client client,
Map<String,Authorizer> authorizers) |
Config(String callbackUrl,
Map<String,Authorizer> authorizers,
Client... clients) |
| Constructor and Description |
|---|
Config(List<Client> clients) |
Config(String callbackUrl,
List<Client> clients) |
| Modifier and Type | Method and Description |
|---|---|
protected HttpAction |
DefaultSecurityLogic.forbidden(C context,
List<Client> currentClients,
List<CommonProfile> profiles,
String authorizers)
Return a forbidden error.
|
protected boolean |
DefaultSecurityLogic.loadProfilesFromSession(C context,
List<Client> currentClients)
Load the profiles from the web context if no clients are defined or if the first client is an indirect one or the
AnonymousClient. |
protected HttpAction |
DefaultSecurityLogic.redirectToIdentityProvider(C context,
List<Client> currentClients)
Perform a redirection to start the login process of the first indirect client.
|
protected boolean |
DefaultSecurityLogic.saveProfileInSession(C context,
List<Client> currentClients,
DirectClient directClient,
CommonProfile profile)
Whether we need to save the profile in session after the authentication of direct client(s).
|
protected void |
DefaultSecurityLogic.saveRequestedUrl(C context,
List<Client> currentClients)
Save the requested url.
|
protected boolean |
DefaultSecurityLogic.startAuthentication(C context,
List<Client> currentClients)
Return whether we must start a login process if the first client is an indirect one.
|
protected HttpAction |
DefaultSecurityLogic.unauthorized(C context,
List<Client> currentClients)
Return an unauthorized error.
|
Copyright © 2017. All Rights Reserved.