SimplePrincipalCollection

A simple implementation of the {@link MutablePrincipalCollection} interface that tracks principals internally by storing them in a {@link LinkedHashMap}.

Constructors

this
this()
Undocumented in source.
this
this(string principal, string realmName)
Undocumented in source.
this
this(Object principal, string realmName)
Undocumented in source.
this
this(Collection!Object principals, string realmName)
Undocumented in source.
this
this(PrincipalCollection principals)
Undocumented in source.

Members

Functions

add
void add(string principal, string realmName)
Undocumented in source. Be warned that the author may not have intended to support it.
add
void add(Object principal, string realmName)
Undocumented in source. Be warned that the author may not have intended to support it.
addAll
void addAll(Collection!Object principals, string realmName)
Undocumented in source. Be warned that the author may not have intended to support it.
addAll
void addAll(PrincipalCollection principals)
Undocumented in source. Be warned that the author may not have intended to support it.
asList
List!Object asList()
Undocumented in source. Be warned that the author may not have intended to support it.
asSet
Set!Object asSet()
Undocumented in source. Be warned that the author may not have intended to support it.
byType
Collection!(T) byType()
Undocumented in source. Be warned that the author may not have intended to support it.
clear
void clear()
Undocumented in source. Be warned that the author may not have intended to support it.
fromRealm
Object[] fromRealm(string realmName)
Undocumented in source. Be warned that the author may not have intended to support it.
getPrimaryPrincipal
Object getPrimaryPrincipal()

Returns the first available principal from any of the {@code Realm} principals, or {@code null} if there are no principals yet. <p/> The 'first available principal' is interpreted as the principal that would be returned by <code>{@link #iterator() iterator()}.{@link java.util.Iterator#next() next()}.</code>

getPrincipalsLazy
Collection!Object getPrincipalsLazy(string realmName)
Undocumented in source. Be warned that the author may not have intended to support it.
getRealmNames
string[] getRealmNames()
Undocumented in source. Be warned that the author may not have intended to support it.
isEmpty
bool isEmpty()
Undocumented in source. Be warned that the author may not have intended to support it.
oneByType
T oneByType()
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(ref Object) dg)

Serialization read support - reads in the Map principals collection if it exists in the input stream. <p/> NOTE: Don't forget to change the serialVersionUID constant at the top of this class if you make any backwards-incompatible serialization changes!!! (use the JDK 'serialver' program for this)

opEquals
bool opEquals(Object o)
Undocumented in source. Be warned that the author may not have intended to support it.
toHash
size_t toHash()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()

Returns a simple string representation suitable for printing.

Inherited Members

From MutablePrincipalCollection

add
void add(Object principal, string realmName)

Adds the given principal to this collection.

addAll
void addAll(Collection!Object principals, string realmName)

Adds all of the principals in the given collection to this collection.

addAll
void addAll(PrincipalCollection principals)

Adds all of the principals from the given principal collection to this collection.

clear
void clear()

Removes all Principals in this collection.

Meta