[ 
https://issues.apache.org/jira/browse/JSEC-35?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654918#action_12654918
 ] 

Adam Taft commented on JSEC-35:
-------------------------------

Just to ask the obvious question...  What would Collection#add(E e) do?  What's 
the E type going to be?

Doesn't PrincipalCollection require a mapping between a realm name and 
principals?  It would need to be something that manages a relation between a 
realm name and a principal, no?

SimplePrincipalCollection, for example, has the add(Object principal, String 
realmName) method (demonstrating this relation).


> PrincipalCollection should implement the java.util.Collection interface
> -----------------------------------------------------------------------
>
>                 Key: JSEC-35
>                 URL: https://issues.apache.org/jira/browse/JSEC-35
>             Project: JSecurity
>          Issue Type: Improvement
>          Components: Subject
>    Affects Versions: 1.0
>            Reporter: Les Hazlewood
>            Assignee: Les Hazlewood
>             Fix For: 1.0
>
>
> No reason I can think of why it shouldn't implement this interface, since it 
> already implements Iterable.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to