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 |
|
|
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++) |