aerogear-security-picketbox 1.0.0.M1

org.jboss.aerogear.security.picketbox.auth
Class AuthenticationManagerImpl

java.lang.Object
  extended by org.jboss.aerogear.security.picketbox.auth.AuthenticationManagerImpl
All Implemented Interfaces:
org.jboss.aerogear.security.auth.AuthenticationManager

@ApplicationScoped
public class AuthenticationManagerImpl
extends Object
implements org.jboss.aerogear.security.auth.AuthenticationManager

A AuthenticationManager implementation executes the basic authentication operations for AeroGearUser


Field Summary
private  org.jboss.aerogear.security.auth.CredentialFactory credentialFactory
           
private  org.picketbox.cdi.PicketBoxIdentity identity
           
 
Constructor Summary
AuthenticationManagerImpl()
           
 
Method Summary
 void login(org.jboss.aerogear.security.model.AeroGearUser aeroGearUser)
          Logs in the specified AeroGearUser.
 void logout()
          Logs out the specified AeroGearUser from the system.
private  void onAuthenticationFailure()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

identity

@Inject
private org.picketbox.cdi.PicketBoxIdentity identity

credentialFactory

@Inject
private org.jboss.aerogear.security.auth.CredentialFactory credentialFactory
Constructor Detail

AuthenticationManagerImpl

public AuthenticationManagerImpl()
Method Detail

login

public void login(org.jboss.aerogear.security.model.AeroGearUser aeroGearUser)
Logs in the specified AeroGearUser.

Specified by:
login in interface org.jboss.aerogear.security.auth.AuthenticationManager
Parameters:
aeroGearUser - represents a simple implementation that holds user's credentials.
Throws:
org.jboss.aerogear.security.exception.AeroGearSecurityException - on login failure.

logout

public void logout()
Logs out the specified AeroGearUser from the system.

Specified by:
logout in interface org.jboss.aerogear.security.auth.AuthenticationManager
Throws:
org.jboss.aerogear.security.exception.AeroGearSecurityException - on logout failure.

onAuthenticationFailure

private void onAuthenticationFailure()

aerogear-security-picketbox 1.0.0.M1

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.