|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.pba.MultiAuthzTokenParser
public class MultiAuthzTokenParser
Constructor Summary | |
---|---|
MultiAuthzTokenParser()
Creates a new instance of MultiAuthTokenParser |
Method Summary | |
---|---|
void |
associate(java.lang.String repository,
java.lang.String parser)
this method is used to associate a repository with an auth token parser to . |
ParsedToken |
decode(java.lang.Object token)
This method decodes a given RawCredential object. |
java.util.Map |
getAuthzTokenParsingRules()
This method returns the Authorisation Token Parsing Rules, as a Map with a single entry with the key issrg.pba.rbac.RoleHierarchyPolicy.class and the value being the RoleHierarchyPolicy used by this RoleBasedACParser. |
SignatureVerifier |
getSignatureVerifier()
This method returns the SignatureVerifier used by this RoleBasedACParser. |
void |
register(java.lang.String className)
this method is used to register an auth token parser. |
void |
setAuthzTokenParsingRules(java.util.Map m)
This method sets the Authorisation Token Parsing Rules. |
void |
setRoleHierarchy(RoleHierarchyPolicy rhpn)
This method sets the Authorisation Token Parsing Rules by directly specifying the Role Hierarchy to be used. |
void |
setSignatureVerifier(SignatureVerifier signatureVerifier)
This method sets the SignatureVerifier to be used to validate the X.509 Attribute Certificates. |
void |
unregister(java.lang.String className)
this method is used to unregister an auth token parser. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiAuthzTokenParser()
Method Detail |
---|
public void setRoleHierarchy(RoleHierarchyPolicy rhpn)
setRoleHierarchy
in interface RoleBasedAuthzTokenParser
rhpn
- - the RoleHierarchyPolicy to be used; if null, decoding the
credentias will always failpublic java.util.Map getAuthzTokenParsingRules()
getAuthzTokenParsingRules
in interface AuthzTokenParser
public void setSignatureVerifier(SignatureVerifier signatureVerifier)
setSignatureVerifier
in interface AuthzTokenParser
signatureVerifier
- is the SignatureVerifier used to validate the
ACs; if null, no signature verification will be performed (SHOULD NOT
BE USED IN PRODUCTION SCENARIOS!)public SignatureVerifier getSignatureVerifier()
getSignatureVerifier
in interface AuthzTokenParser
public void setAuthzTokenParsingRules(java.util.Map m)
setAuthzTokenParsingRules
in interface AuthzTokenParser
m
- - the Map of rules with a RoleHierarchyPolicy insidepublic ParsedToken decode(java.lang.Object token) throws PbaException
decode
in interface AuthzTokenParser
token
- - implementation-specific object returned by the Repository; it is
the authorisation token to be decoded
PbaException,
- if no Role Hierarchy Policy has been specified
through the constructor or either of the methods, or if there was a
problem when decoding the Authorisation Token
PbaException
- if any error occurs; for example, the given object is
not a proper Authorisation Token that the implementation can handlepublic void register(java.lang.String className)
className
- is the class name of the auth token parser.public void unregister(java.lang.String className)
className
- is the class name of the auth token parser.public void associate(java.lang.String repository, java.lang.String parser)
parser
- is the class name of the auth token parser.repos
- is the class name of the repository.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |