|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.gridshib.gt.authorization.ShibbolethPDPUtil
public class ShibbolethPDPUtil
Contains static methods for common Shib PDP tasks
| Constructor Summary | |
|---|---|
ShibbolethPDPUtil()
|
|
| Method Summary | |
|---|---|
static boolean |
attributeSetsMatch(Vector samlAttributes,
org.globus.gridshib.gt.authorization.attributes.SAMLAttribute[] attributes)
|
static boolean |
attributeSetsMatch(Vector samlAttributes,
Vector peerAttributes)
|
static String[] |
getUsernameMappings(org.globus.gridshib.gt.authorization.attributes.policy.AttributeMapping[] mappings,
Iterator peerAttributes)
|
static boolean |
isAttributePermitted(org.globus.gridshib.gt.authorization.attributes.SAMLAttribute[] attributes,
ShibbolethPDPPolicy policy)
Checks the configured attributes against the given attributes. |
static boolean |
isAttributePermitted(Subject peerSubject,
ShibbolethPDPPolicy policy)
Checks the configured attributes against the subject's issued attributes (i.e., those attributes stored in the subject's security context). |
static org.globus.gridshib.gt.authorization.attributes.AttributeInformation |
queryCachedAttributeInformation(String peerIdentity,
String scope)
Checks for any previously obtained attribute information about the subject. |
static boolean |
setCachedAttributeInformation(String peerIdentity,
String scope,
org.globus.gridshib.gt.authorization.attributes.AttributeInformation info)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShibbolethPDPUtil()
| Method Detail |
|---|
public static boolean isAttributePermitted(Subject peerSubject,
ShibbolethPDPPolicy policy)
peerSubject - a subject that has a security contextpolicy - configured attribute-based policy
public static boolean isAttributePermitted(org.globus.gridshib.gt.authorization.attributes.SAMLAttribute[] attributes,
ShibbolethPDPPolicy policy)
attributes - a provided array of attributes to check againstpolicy - configured attribute-based policy
public static org.globus.gridshib.gt.authorization.attributes.AttributeInformation queryCachedAttributeInformation(String peerIdentity,
String scope)
peerIdentity - caller
This is intended to be the string generated from
AuthUtil.getIdentity(peer), but can be any unique string.scope - intended to be the pdp chain scope, but could be
used in other ways
public static boolean setCachedAttributeInformation(String peerIdentity,
String scope,
org.globus.gridshib.gt.authorization.attributes.AttributeInformation info)
peerIdentity - caller
This is intended to be the string generated from
AuthUtil.getIdentity(peer), but can be any unique string.scope - intended to be the pdp chain scope, but could be
used in other waysinfo - attrs
public static boolean attributeSetsMatch(Vector samlAttributes,
Vector peerAttributes)
public static boolean attributeSetsMatch(Vector samlAttributes,
org.globus.gridshib.gt.authorization.attributes.SAMLAttribute[] attributes)
public static String[] getUsernameMappings(org.globus.gridshib.gt.authorization.attributes.policy.AttributeMapping[] mappings,
Iterator peerAttributes)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||