no.feide.mellon.jaas.principals
Class EntitlementPrincipal
java.lang.Object
no.feide.mellon.jaas.principals.MoriaPrincipal
no.feide.mellon.jaas.principals.EntitlementPrincipal
- All Implemented Interfaces:
- com.sun.security.auth.PrincipalComparator, java.security.Principal
public class EntitlementPrincipal
- extends MoriaPrincipal
- implements com.sun.security.auth.PrincipalComparator
A special principal for the eduPersonEntitlement attribute in FEIDE
Note that no subject will have any EntitlementPrincipals, only MoriaPrincipals.
An EntitlementPrincipal implies a MoriaPrincipal with attributeName
"eduPersonEntitlement"
and the sufficient attribute value. See the implies
method.
EntitlementPrincipals are only used in the policy file. In the policy file it cannot
be replaced by the corresponding MoriaPrincipal if you want to make use of wildcards.
- Author:
- Rikke Amilde Løvlid
Method Summary |
boolean |
implies(java.lang.String string1,
java.lang.String string2)
|
boolean |
implies(javax.security.auth.Subject subject)
This EntitlementPrincipal implies the Subject subject if the subject has a MoriaPrincipal
with attributeName "eduPersonEntitlement" (this.attributeName is "eduPersonEntitlement")
and an attributeValue which is implied by the attributeValue belonging to this EntitlementPrincipal. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
EntitlementPrincipal
public EntitlementPrincipal(java.lang.String name)
- Parameters:
name
- the attribute value of the eduPersonEntitlement attribute in FEIDE,
may contain wildcards.
implies
public boolean implies(javax.security.auth.Subject subject)
- This EntitlementPrincipal implies the Subject subject if the subject has a MoriaPrincipal
with attributeName "eduPersonEntitlement" (this.attributeName is "eduPersonEntitlement")
and an attributeValue which is implied by the attributeValue belonging to this EntitlementPrincipal.
- Specified by:
implies
in interface com.sun.security.auth.PrincipalComparator
implies
public boolean implies(java.lang.String string1,
java.lang.String string2)
- Parameters:
string1
- string2
- A wildcard, "*", in string1
can match any substring of string2
that does not contain any ':'. The wildcards have to be between two ":".
- Returns:
- whether string1 implies string 2
Copyright © 2001-2006 UNINETT FAS. All Rights Reserved.