/[classpath]/classpath/javax/security/auth/SubjectDomainCombiner.java
ViewVC logotype

Diff of /classpath/javax/security/auth/SubjectDomainCombiner.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by mark, Sat Jul 2 20:32:46 2005 UTC revision 1.3 by rsdio, Tue Sep 13 03:01:35 2005 UTC
# Line 1  Line 1 
1  /* SubjectDomainCombiner.java -- domain combiner for Subjects.  /* SubjectDomainCombiner.java -- domain combiner for Subjects.
2     Copyright (C) 2004 Free Software Foundation, Inc.     Copyright (C) 2004, 2005  Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 67  public class SubjectDomainCombiner imple Line 67  public class SubjectDomainCombiner imple
67                                       final ProtectionDomain[] assigned)                                       final ProtectionDomain[] assigned)
68    {    {
69      LinkedList domains = new LinkedList();      LinkedList domains = new LinkedList();
70      Principal[] principals =      Principal[] principals = null;
71        (Principal[]) subject.getPrincipals().toArray (new Principal[0]);      if (subject != null)
72          principals = (Principal[]) subject.getPrincipals().toArray (new Principal[0]);
73      if (current != null)      if (current != null)
74        {        {
75          for (int i = 0; i < current.length; i++)          for (int i = 0; i < current.length; i++)

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26