|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.simplePERMIS.SimplePERMISTokenParser
public class SimplePERMISTokenParser
This class implements the RoleBasedAuthTokenParser interface. It extracts role attributes from SimplePERMISToken objects and creates parsed token objects. It is the default token parser defined in issrg.pba.rbac.CustomisePERMIS.
CustomisePERMIS
Field Summary | |
---|---|
protected RoleHierarchyPolicy |
roleHierarchy
|
Constructor Summary | |
---|---|
SimplePERMISTokenParser()
|
Method Summary | |
---|---|
ParsedToken |
decode(java.lang.Object creds)
This method decodes the credentials of type SimplePERMISToken. |
ParsedToken |
decode(java.lang.Object creds,
java.util.Date notBefore,
java.util.Date notAfter)
This method decodes the credentials of type SimplePERMISToken. |
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 SimplePERMISTokenParser. |
SignatureVerifier |
getSignatureVerifier()
This method gets the Signature Verifier used by the Token Parser. |
void |
setAuthzTokenParsingRules(java.util.Map m)
This method sets the Auth Token parsing rules. |
void |
setRoleHierarchy(RoleHierarchyPolicy rhp)
Set the Role Hierarchy Policy. |
void |
setSignatureVerifier(SignatureVerifier sv)
This method sets the signature verifier for the parser. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected RoleHierarchyPolicy roleHierarchy
Constructor Detail |
---|
public SimplePERMISTokenParser()
Method Detail |
---|
public void setRoleHierarchy(RoleHierarchyPolicy rhp)
setRoleHierarchy
in interface RoleBasedAuthzTokenParser
rhp
- is a reference to the Role Hierarchypublic void setAuthzTokenParsingRules(java.util.Map m)
setAuthzTokenParsingRules
in interface AuthzTokenParser
m
- is the parsing rules of type Map with a single entry with
the key issrg.pba.rbac.RoleHierarchyPolicy.class and the value being the RoleHierarchyPolicy
to be used by this SimplePERMISTokenParser.public java.util.Map getAuthzTokenParsingRules()
getAuthzTokenParsingRules
in interface AuthzTokenParser
public ParsedToken decode(java.lang.Object creds) throws PbaException
decode
in interface AuthzTokenParser
creds
- - The credential to be parsed. It should be an instance of SimplePERMISToken.
PbaException
- if the credential in input is not a SimplePERMISToken.public ParsedToken decode(java.lang.Object creds, java.util.Date notBefore, java.util.Date notAfter) throws PbaException
creds
- - The credential to be parsed. It should be an instance of SimplePERMISToken.notBefore
- - the token validity period starting datenotAfter
- - the token validity period expiry date
PbaException
- if the credential in input is not a SimplePERMISToken.public void setSignatureVerifier(SignatureVerifier sv)
setSignatureVerifier
in interface AuthzTokenParser
public SignatureVerifier getSignatureVerifier()
AuthzTokenParser
getSignatureVerifier
in interface AuthzTokenParser
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |