| java.lang.Object org.ejbca.core.model.authorization.BasicAccessRuleSetEncoder
BasicAccessRuleSetEncoder | public class BasicAccessRuleSetEncoder implements java.io.Serializable(Code) | | A class used as a help class for displaying and configuring basic access rules
author: herrvendil version: $Id: BasicAccessRuleSetEncoder.java,v 1.4 2007/04/13 06:06:49 herrvendil Exp $ |
BasicAccessRuleSetEncoder | public BasicAccessRuleSetEncoder(Collection currentaccessrules, Collection availableaccessrules, boolean usehardtokens, boolean usekeyrecovery)(Code) | | Tries to encode a advanced ruleset into basic ones.
Sets the forceadvanced flag if encoding isn't possible.
|
getAvailableCAs | public Collection getAvailableCAs()(Code) | | a Collection of available CAids or BasicAccessRuleSet.CA_ALL for all cas. |
getAvailableEndEntityProfiles | public Collection getAvailableEndEntityProfiles()(Code) | | a Collection of av ailable EndEntityProfileIds or BasicAccessRuleSet.ENDENTITYPROFILE_ALL for all and entity profiles. |
getAvailableEndEntityRules | public Collection getAvailableEndEntityRules()(Code) | | a Collection of available EndEntityRules, BasicAccessRuleSet.ENDENTITY_ constants (Integer) |
getAvailableOtherRules | public Collection getAvailableOtherRules()(Code) | | a Collection of available other rules (Integer). |
getAvailableRoles | public Collection getAvailableRoles()(Code) | | Returns a Collection of basic roles the administrator is authorized to configure.
a Collection of BasicRuleSet.ROLE_constants (Integer) |
getCurrentCAs | public HashSet getCurrentCAs()(Code) | | a Collection of CAids the administratorgroup is authorized to or BasicAccessRuleSet.CA_ALL for all cas. |
getCurrentEndEntityProfiles | public HashSet getCurrentEndEntityProfiles()(Code) | | a Collection of authorized EndEntityProfileIds or BasicAccessRuleSet.ENDENTITYPROFILE_ALL for all |
getCurrentEndEntityRules | public HashSet getCurrentEndEntityRules()(Code) | | a Collection of EndEntityRules the administratorgroup is authorized to, BasicAccessRuleSet.ENDENTITY_ constants (Integer). |
getCurrentOtherRules | public HashSet getCurrentOtherRules()(Code) | | a Collection of auhtorized other rules. (Integer). |
getCurrentRole | public int getCurrentRole()(Code) | | Returns the current role of the administrator group.
One of the BasicRuleSet ROLE_constants
|
getForceAdvanced | public boolean getForceAdvanced()(Code) | | Returns true if basic configuration of access rules isn't possible.
|
|
|