|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectissrg.pba.rbac.CustomisePERMIS
This class should be used to customise the components PERMIS RBAC uses.
These include:
CustomisePERMIS and the creation of PermisRBAC should be in a synchronized block, so the other threads do not modify your settings.
Field Summary | |
protected static java.lang.Class |
authTokenParser
The class of the default AuthTokenParser (issrg.simplePERMIS.SimplePERMISTokenParser). |
static java.lang.Class |
comparator
This is the default Role Assignment Rule Comparator, used to optimise the delegation chain validation by applying the most relevant Role Assignment Rules first. |
static Clock |
systemClock
This is the secure source of time used by PERMIS. |
Constructor Summary | |
CustomisePERMIS()
|
Method Summary | |
static void |
addURLHandler(java.lang.String className)
This method adds a URL Handler. |
static void |
configureX509Flavour()
This is the method to configure X.509 flavour into PERMIS: after this PERMIS will accept X.509 ACs by default. |
static java.lang.String |
getAttributeCertificateAttribute()
This method returns the LDAP attribute name used to retrieve the Attribute Certificates. |
static AuthTokenParser |
getAuthTokenParser()
This method returns an instance of a AuthTokenParser configured into PERMIS. |
static RuleComparator |
getComparator()
This method returns an instance of the default Role Assignment Rule Comparator. |
static Clock |
getSystemClock()
This method returns the clock that will be used for calculating relative validity periods and a time reference for decision-making. |
static java.lang.String |
getUserCertificateAttribute()
This method returns the LDAP attribute name used to retrieve the Public Key Certificates. |
static void |
registerACExtensions()
This method registers the default X.509 AC extension parsing classes. |
static void |
registerACExtensions(java.lang.String[] exts)
This method registers the X.509 AC extension parsing classes provided in addition to already registered exntensions. |
static void |
setAttributeCertificateAttribute(java.lang.String id)
This method sets the LDAP attribute name used to retrieve the Attribute Certificates. |
static void |
setAuthTokenParser(java.lang.String className)
Sets the default Auth Token Parser to be used by PERMIS. |
static void |
setComparator(java.lang.String className)
This method sets the name of the class of the default Role Assignment Rule Comparator. |
static void |
setSystemClock(java.lang.String className)
Sets the default System Clock to be used by PERMIS. |
static void |
setUserCertificateAttribute(java.lang.String id)
This method sets the LDAP attribute name used to retrieve the Public Key Certificates. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static Clock systemClock
protected static java.lang.Class authTokenParser
public static java.lang.Class comparator
RuleComparator
Constructor Detail |
public CustomisePERMIS()
Method Detail |
public static Clock getSystemClock()
Replacing the value does not affect any of the objects already created.
public static AuthTokenParser getAuthTokenParser()
public static void setAuthTokenParser(java.lang.String className) throws java.lang.ClassNotFoundException
className
- - the name of the class to use as the authorisation
token parser
java.lang.ClassNotFoundException
SimplePERMISTokenParser
public static void setSystemClock(java.lang.String className) throws java.lang.ClassNotFoundException
className
- - the name of the class to use as the system clock
java.lang.ClassNotFoundException
SystemClock
public static void addURLHandler(java.lang.String className) throws java.lang.ClassNotFoundException
className
- - the name of the class to be added as a URLHandler.
java.lang.ClassNotFoundException
URLHandler
public static void configureX509Flavour() throws PbaException
The method registers the default AuthTokenParser that supports X.509 Attribute Certificates and registers all the AC Extensions.
PbaException
public static java.lang.String getAttributeCertificateAttribute()
public static void setAttributeCertificateAttribute(java.lang.String id)
public static java.lang.String getUserCertificateAttribute()
public static void setUserCertificateAttribute(java.lang.String id)
public static void registerACExtensions() throws PbaException
PbaException
public static void registerACExtensions(java.lang.String[] exts) throws PbaException
PbaException
public static RuleComparator getComparator()
RuleComparator
public static void setComparator(java.lang.String className) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
RuleComparator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |