Interface Validator
-
- All Known Implementing Classes:
AuthNValidator
,ClockTime
,Date
,Day
,Discriminant
,DSDChecker
,LockDate
,Timeout
,UserRoleConstraint
public interface Validator
Interface used by Fortress to provide pluggable validation routines for constraints.Constraint Targets
Constraint Processors
- Time of day:
ClockTime
- Date:
Date
- Days of week:
Day
- Timeout:
Timeout
- Lock dates:
LockDate
- DSDs:
DSDChecker
Constraint Error Codes
- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
validate(Session session, Constraint constraint, Time time, VUtil.ConstraintType type)
This method is called during activation ofUserRole
andUserAdminRole
-
-
-
Method Detail
-
validate
int validate(Session session, Constraint constraint, Time time, VUtil.ConstraintType type) throws SecurityException
This method is called during activation ofUserRole
andUserAdminRole
The following error codes can be returned for validations:
- Parameters:
session
- contains the reference to Fortress entities that are targets for constraints.constraint
- contains the temporal attributes.time
- current time of day.type
- contains type of either role or user constraint.- Returns:
- activation failure code.
- Throws:
SecurityException
- in the event of validation fails or system exception.
-
-