com.vii.brillien.services.sso.shiro
Class ShiroPresence<R>
java.lang.Object
com.vii.brillien.core.component.AbstractPresence<R>
com.vii.brillien.core.component.SuperPresence<R>
com.vii.brillien.core.component.sso.SubjectPresence<R>
com.vii.brillien.services.sso.shiro.ShiroPresence<R>
- All Implemented Interfaces:
- Aspirer<BrillienCommunication,R>, Presence<BrillienCommunication,R>, Progressor, Sensor<BrillienCommunication>, SubjectService, Callable<R>
public class ShiroPresence<R>
- extends SubjectPresence<R>
Reference implementation for a specialized SubjectPresence managing Apache Shiro SSO solution
Fields inherited from class com.vii.brillien.core.component.AbstractPresence |
actualStates, defaultErrorState, defaultExitState, defaultInitState, flow, future, messageListening, name, needToLog, needToReport, periodical, presenceManager, stateDivision, stateNotifyQueue, states, submited, superUnits, timeMeasure, waitingForInputData, waitingForResponse |
Methods inherited from class com.vii.brillien.core.component.sso.SubjectPresence |
authenticate, getConfiguration, hasAPermission, hasARole, hasPermission, hasPermissions, hasRole, hasRoles, isAuthenticated, logout, setConfiguration |
Methods inherited from class com.vii.brillien.core.component.AbstractPresence |
activateAll, activateCallable, activateMessaging, addState, addSuperUnits, aspirationTimeIsUp, authorizeCall, buildStateSpace, buildStateStructure, call, changeState, clearSuperUnits, communicationReceived, containsKey, errorReceived, exceptionLog, get, getActualStates, getAspirationTimeMeasure, getDefaultState, getFlow, getFlowID, getFlowToReport, getFullName, getMessageProcessorParameterNames, getMessageProcessorParameterTypes, getName, getParameters, getPotentialStates, getPresenceManager, getReference, getReference, getResult, getSharedMessage, getSharing, getSSOPresenceName, getStateDivision, getSubject, getSuperUnits, hasActivity, hasStateMachine, initStateMashine, initStateStructure, innerActivateCallable, innerCall, innerChangeState, invokeMessageProcessor, invokeRequestProcessor, invokeResultProcessor, isAspirationPeriodical, isInExitState, isInState, isInValidStates, isReference, isWaitingForInputData, isWaitingForResponse, panic, passivateAll, passivateCallable, passivateMessaging, plan, presenseChangedState, printErrorStates, processMessage, registerStateChangeNotification, removeState, removeSuperUnits, report, reset, retrieve, sendAGet, sendAGet, sendDelegatedGet, sendDelegatedGet, sendError, sendGet, sendGet, sendGet, sendGet, sendResponse, sendSet, sendSet, sendUnitAGet, sendUnitAGet, sendUnitDelegatedGet, sendUnitDelegatedGet, sendUnitGet, sendUnitGet, sendUnitGet, sendUnitGet, sendUnitSet, sendUnitSet, setAspirationPeriodical, setAspirationTimeMeasure, setFlow, setFuture, setName, setPresenceManager, setStateDivision, toString, unregisterStateChangeNotification, validate, validateMessage |
ShiroPresence
public ShiroPresence()
initiate
protected void initiate()
throws BrillienException
- Specified by:
initiate
in class SubjectPresence<R>
- Throws:
BrillienException
getSubject
protected org.apache.shiro.subject.Subject getSubject(Session session)
getPermissions
protected List<org.apache.shiro.authz.Permission> getPermissions(List<String> permissions)
innerAuthenticate
protected Session innerAuthenticate(String username,
String principal)
throws BrillienException
- Specified by:
innerAuthenticate
in class SubjectPresence<R>
- Throws:
BrillienException
innerLogout
protected void innerLogout(Session session)
throws BrillienException
- Specified by:
innerLogout
in class SubjectPresence<R>
- Throws:
BrillienException
innerIsAuthenticated
protected boolean innerIsAuthenticated(Session session)
throws BrillienException
- Specified by:
innerIsAuthenticated
in class SubjectPresence<R>
- Throws:
BrillienException
innerHasRole
protected boolean innerHasRole(Session session,
String roleIdentifier)
throws BrillienException
- Specified by:
innerHasRole
in class SubjectPresence<R>
- Throws:
BrillienException
innerHasARole
protected boolean innerHasARole(Session session,
List<String> roleIdentifiers)
throws BrillienException
- Specified by:
innerHasARole
in class SubjectPresence<R>
- Throws:
BrillienException
innerHasRoles
protected boolean innerHasRoles(Session session,
List<String> roleIdentifiers)
throws BrillienException
- Specified by:
innerHasRoles
in class SubjectPresence<R>
- Throws:
BrillienException
innerHasPermission
protected boolean innerHasPermission(Session session,
String permission)
throws BrillienException
- Specified by:
innerHasPermission
in class SubjectPresence<R>
- Throws:
BrillienException
innerHasAPermission
protected boolean innerHasAPermission(Session session,
List<String> permissions)
throws BrillienException
- Specified by:
innerHasAPermission
in class SubjectPresence<R>
- Throws:
BrillienException
innerHasPermissions
protected boolean innerHasPermissions(Session session,
List<String> permissions)
throws BrillienException
- Specified by:
innerHasPermissions
in class SubjectPresence<R>
- Throws:
BrillienException
Copyright © 2011. All Rights Reserved.