|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.pba.rbac.ContextNamePrincipal
public class ContextNamePrincipal
This class represents a context name, which is corresponding to the context name in a MSoD policy. It is based on RFC2253. Like DN -- distinguished name, it contains a group of variable-value pairs, and the value can be * or $: * means any specific value for this variable, for example, given c=*, then c=21 and c=34 belong to two different context instances; $ means any value regardless of its specific value, for example, given c=$, then c=21 and c=34 belong to the same context instance if other variable/value pairs also match.
Field Summary | |
---|---|
static ContextNamePrincipal |
WHOLE_WORLD_DN
|
Constructor Summary | |
---|---|
protected |
ContextNamePrincipal()
|
|
ContextNamePrincipal(java.lang.String contextDN)
This constructor builds the object out of the String representation of the DN. |
Method Summary | |
---|---|
boolean |
contains(ContextNamePrincipal con)
This method is for MSoD rule matching. |
boolean |
equals(ContextNamePrincipal con)
This method is to compare two ContextNamePrincipal objects. |
java.lang.String |
getName()
|
java.lang.String[][][] |
getParsedDN()
Returns the DN as an array, specified by issrg.utils.RFC2253Parser |
ContextNamePrincipal |
instantiate(ContextNamePrincipal inputCNP)
This method is for MSoD rule to instantiate a ContextNamePrincipal, i.e. * is instantiated with a value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
equals, hashCode, toString |
Field Detail |
---|
public static final ContextNamePrincipal WHOLE_WORLD_DN
Constructor Detail |
---|
protected ContextNamePrincipal()
public ContextNamePrincipal(java.lang.String contextDN) throws RFC2253ParsingException
issrg.utils.RFC2253NameParser
to check if the name can be successfully parsed.
If not, an issrg.utils.RFC2253ParsingException
is thrown.
RFC2253ParsingException
RFC2253NameParser
,
RFC2253ParsingException
Method Detail |
---|
public java.lang.String getName()
getName
in interface java.security.Principal
public java.lang.String[][][] getParsedDN()
public boolean equals(ContextNamePrincipal con)
con
- is the input ContextNamePrincipal.
public boolean contains(ContextNamePrincipal con)
con
- is the input ContextNamePrincipal.
public ContextNamePrincipal instantiate(ContextNamePrincipal inputCNP)
inputCNP
- is the input ContextNamePrincipal.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |