no.feide.mellon.jaas.principals
Class ScopedAffiliationPrincipal
java.lang.Object
no.feide.mellon.jaas.principals.MoriaPrincipal
no.feide.mellon.jaas.principals.ScopedAffiliationPrincipal
- All Implemented Interfaces:
- com.sun.security.auth.PrincipalComparator, java.security.Principal
public class ScopedAffiliationPrincipal
- extends MoriaPrincipal
- implements com.sun.security.auth.PrincipalComparator
A special principal for the eduPersonScopedAffiliation attribute in FEIDE
Note that no subject will have any ScopedAffiliationPrincipals, only MoriaPrincipals.
An ScopedAffiliationPrincipal implies a MoriaPrincipal with attributeName
"eduPersonScopedAffiliation"
and the sufficient attribute value. See the implies
method.
ScopedAffiliationPrincipals 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)
ScopedAffiliationPrincipal implies the Subject subject if the subject has a MoriaPrincipal
with attributeName "eduPersonScopedAffiliation" (this.attributeName is "eduPersonScopedAffiliation")
and an attributeValue which is implied by the attributeValue belonging to this ScopedAffiliationPrincipal. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ScopedAffiliationPrincipal
public ScopedAffiliationPrincipal(java.lang.String name)
- Parameters:
name
- the attribute value of the eduPersonScopedAffiliation attribute in FEIDE.
It is on the form x@y where x may be replaced by a wildcard.
implies
public boolean implies(javax.security.auth.Subject subject)
- ScopedAffiliationPrincipal implies the Subject subject if the subject has a MoriaPrincipal
with attributeName "eduPersonScopedAffiliation" (this.attributeName is "eduPersonScopedAffiliation")
and an attributeValue which is implied by the attributeValue belonging to this ScopedAffiliationPrincipal.
- Specified by:
implies
in interface com.sun.security.auth.PrincipalComparator
implies
public boolean implies(java.lang.String string1,
java.lang.String string2)
- Parameters:
string1
- this objects attribute value. It is on the form a@bstring2
- the attribute value we vant to know wether is implied by string1 or not. It is on the form c@d
The "a" in string1 may be a wildcard, "*".
string1 implies string2 if they are equal or "a" is a wildcard and b and d are equal.
- Returns:
- whether string1 implies string2
Copyright © 2001-2006 UNINETT FAS. All Rights Reserved.