|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.test.pmi.XMLAuthTokenParser
public class XMLAuthTokenParser
Field Summary | |
---|---|
protected static Credentials |
NullCreds
|
Constructor Summary | |
---|---|
XMLAuthTokenParser()
|
Method Summary | |
---|---|
ParsedToken |
decode(java.lang.Object at)
Decoding happens like this: at must be a ParsedToken or a org.w3c.dom.Element extract "dn" attribute from "holder" element extract "dn" attribute from "issuer" element build subjectDomain that includes the whole world, but excludes the holder of the ParsedToken; this is for use in DelegatableParsedToken extract "notBefore" and "notAfter" attributes from "validity" element look up a role for each "attribute" element, using the values of its "type" and "value" attributes; an ExpirableCredentials is built using that role and the validity period go through the "extension" elements if an "extension" element has "type" attribute set to "NoAssertion" the assertableCreds will be set to NullCreds if an "extension" element has "type" attribute set to "BasicAttConstaint", the value of its "depth" attribute is used to set the delegation depth if an "extension" element has "type" attribute that does not match either of the above and contains an attribute "critical" with value "true", delegatableCredentials and assertableCredentials are null construct a DelegatableParsedToken with delegatableCredentials, if they are specified; otherwise, construct ParsedToken with assertableCredentials only |
java.util.Map |
getAuthzTokenParsingRules()
This method returns the Auth Token parsing rules currently used by the parser. |
SignatureVerifier |
getSignatureVerifier()
This method gets the Signature Verifier used by the Token Parser. |
void |
setAuthzTokenParsingRules(java.util.Map rules)
This method sets the Auth Token parsing rules. |
void |
setRoleHierarchy(RoleHierarchyPolicy rhp)
Sets the Role Hierarchy Policy. |
void |
setSignatureVerifier(SignatureVerifier signatureVerifier)
This method sets the Signature Verifier to be used by the Token Parser. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Credentials NullCreds
Constructor Detail |
---|
public XMLAuthTokenParser()
Method Detail |
---|
public void setRoleHierarchy(RoleHierarchyPolicy rhp)
RoleBasedAuthzTokenParser
setRoleHierarchy
in interface RoleBasedAuthzTokenParser
rhp
- is a reference to the Role Hierarchypublic ParsedToken decode(java.lang.Object at) throws PbaException
decode
in interface AuthzTokenParser
at
- - implementation-specific object returned by the Repository; it is
the authorisation token to be decoded
PbaException
- if any error occurs; for example, the given object is
not a proper Authorisation Token that the implementation can handlepublic java.util.Map getAuthzTokenParsingRules()
AuthzTokenParser
getAuthzTokenParsingRules
in interface AuthzTokenParser
public void setAuthzTokenParsingRules(java.util.Map rules)
AuthzTokenParser
setAuthzTokenParsingRules
in interface AuthzTokenParser
public void setSignatureVerifier(SignatureVerifier signatureVerifier)
AuthzTokenParser
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 |