-
Notifications
You must be signed in to change notification settings - Fork 0
/
Subject.xml
1026 lines (1025 loc) · 67.8 KB
/
Subject.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Type Name="Subject" FullName="Javax.Security.Auth.Subject">
<TypeSignature Language="C#" Value="public sealed class Subject : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Java.IO.ISerializable" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit Subject extends Java.Lang.Object implements class Android.Runtime.IJavaObject, class Java.Interop.IJavaPeerable, class Java.IO.ISerializable, class System.IDisposable" />
<TypeSignature Language="DocId" Value="T:Javax.Security.Auth.Subject" />
<TypeSignature Language="F#" Value="type Subject = class
 inherit Object
 interface ISerializable
 interface IJavaObject
 interface IDisposable
 interface IJavaPeerable" />
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Java.Lang.Object</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>Android.Runtime.IJavaObject</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.Interop.IJavaPeerable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.IO.ISerializable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("javax/security/auth/Subject", DoNotGenerateAcw=true)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("javax/security/auth/Subject", DoNotGenerateAcw=true)>]</AttributeName>
</Attribute>
</Attributes>
<Docs since="1">
<summary>A <c>Subject</c> represents a grouping of related information
for a single entity, such as a person.</summary>
<remarks>
<para>A <c>Subject</c> represents a grouping of related information
for a single entity, such as a person.
Such information includes the Subject's identities as well as
its security-related attributes
(passwords and cryptographic keys, for example).</para>
<para>Subjects may potentially have multiple identities.
Each identity is represented as a <c>Principal</c>
within the <c>Subject</c>. Principals simply bind names to a
<c>Subject</c>. For example, a <c>Subject</c> that happens
to be a person, Alice, might have two Principals:
one which binds "Alice Bar", the name on her driver license,
to the <c>Subject</c>, and another which binds,
"999-99-9999", the number on her student identification card,
to the <c>Subject</c>. Both Principals refer to the same
<c>Subject</c> even though each has a different name.</para>
<para>A <c>Subject</c> may also own security-related attributes,
which are referred to as credentials.
Sensitive credentials that require special protection, such as
private cryptographic keys, are stored within a private credential
<c>Set</c>. Credentials intended to be shared, such as
public key certificates or Kerberos server tickets are stored
within a public credential <c>Set</c>. Different permissions
are required to access and modify the different credential Sets.</para>
<para>To retrieve all the Principals associated with a <c>Subject</c>,
invoke the <c>getPrincipals</c> method. To retrieve
all the public or private credentials belonging to a <c>Subject</c>,
invoke the <c>getPublicCredentials</c> method or
<c>getPrivateCredentials</c> method, respectively.
To modify the returned <c>Set</c> of Principals and credentials,
use the methods defined in the <c>Set</c> class.
For example:</para>
<code lang="text/java">Subject subject;
Principal principal;
Object credential;
// add a Principal and credential to the Subject
subject.getPrincipals().add(principal);
subject.getPublicCredentials().add(credential);
</code>
<para>This <c>Subject</c> class implements <c>Serializable</c>.
While the Principals associated with the <c>Subject</c> are serialized,
the credentials associated with the <c>Subject</c> are not.
Note that the <c>java.security.Principal</c> class
does not implement <c>Serializable</c>. Therefore all concrete
<c>Principal</c> implementations associated with Subjects
must implement <c>Serializable</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/javax/security/auth/Subject" title="Reference documentation">Java documentation for <code>javax.security.auth.Subject</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Subject ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:Javax.Security.Auth.Subject.#ctor" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "()V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "()V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Create an instance of a <c>Subject</c>
with an empty <c>Set</c> of Principals and empty
Sets of public and private credentials.</summary>
<remarks>
<para>Create an instance of a <c>Subject</c>
with an empty <c>Set</c> of Principals and empty
Sets of public and private credentials.</para>
<para>The newly constructed Sets check whether this <c>Subject</c>
has been set read-only before permitting subsequent modifications.
The newly created Sets also prevent illegal modifications
by ensuring that callers have sufficient permissions.</para>
<para>To modify the Principals Set, the caller must have
<c>AuthPermission("modifyPrincipals")</c>.
To modify the public credential Set, the caller must have
<c>AuthPermission("modifyPublicCredentials")</c>.
To modify the private credential Set, the caller must have
<c>AuthPermission("modifyPrivateCredentials")</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/javax/security/auth/Subject#Subject()" title="Reference documentation">Java documentation for <code>javax.security.auth.Subject.Subject()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Subject (bool readOnly, System.Collections.Generic.ICollection<Java.Security.IPrincipal>? principals, System.Collections.Generic.ICollection<object>? pubCredentials, System.Collections.Generic.ICollection<object>? privCredentials);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(bool readOnly, class System.Collections.Generic.ICollection`1<class Java.Security.IPrincipal> principals, class System.Collections.Generic.ICollection`1<object> pubCredentials, class System.Collections.Generic.ICollection`1<object> privCredentials) cil managed" />
<MemberSignature Language="DocId" Value="M:Javax.Security.Auth.Subject.#ctor(System.Boolean,System.Collections.Generic.ICollection{Java.Security.IPrincipal},System.Collections.Generic.ICollection{System.Object},System.Collections.Generic.ICollection{System.Object})" />
<MemberSignature Language="F#" Value="new Javax.Security.Auth.Subject : bool * System.Collections.Generic.ICollection<Java.Security.IPrincipal> * System.Collections.Generic.ICollection<obj> * System.Collections.Generic.ICollection<obj> -> Javax.Security.Auth.Subject" Usage="new Javax.Security.Auth.Subject (readOnly, principals, pubCredentials, privCredentials)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "(ZLjava/util/Set;Ljava/util/Set;Ljava/util/Set;)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(ZLjava/util/Set;Ljava/util/Set;Ljava/util/Set;)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="readOnly" Type="System.Boolean" />
<Parameter Name="principals" Type="System.Collections.Generic.ICollection<Java.Security.IPrincipal>" />
<Parameter Name="pubCredentials" Type="System.Collections.Generic.ICollection<System.Object>" />
<Parameter Name="privCredentials" Type="System.Collections.Generic.ICollection<System.Object>" />
</Parameters>
<Docs>
<param name="readOnly">true if the <c>Subject</c> is to be read-only,
and false otherwise. <p></param>
<param name="principals">the <c>Set</c> of Principals
to be associated with this <c>Subject</c>. <p></param>
<param name="pubCredentials">the <c>Set</c> of public credentials
to be associated with this <c>Subject</c>. <p></param>
<param name="privCredentials">the <c>Set</c> of private credentials
to be associated with this <c>Subject</c>.</param>
<summary>Create an instance of a <c>Subject</c> with
Principals and credentials.</summary>
<remarks>
<para>Create an instance of a <c>Subject</c> with
Principals and credentials.</para>
<para>The Principals and credentials from the specified Sets
are copied into newly constructed Sets.
These newly created Sets check whether this <c>Subject</c>
has been set read-only before permitting subsequent modifications.
The newly created Sets also prevent illegal modifications
by ensuring that callers have sufficient permissions.</para>
<para>To modify the Principals Set, the caller must have
<c>AuthPermission("modifyPrincipals")</c>.
To modify the public credential Set, the caller must have
<c>AuthPermission("modifyPublicCredentials")</c>.
To modify the private credential Set, the caller must have
<c>AuthPermission("modifyPrivateCredentials")</c>.</para>
<para />
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/javax/security/auth/Subject#Subject(boolean,%20java.util.Set%3C?%20extends%20java.security.Principal%3E,%20java.util.Set%3C?%3E,%20java.util.Set%3C?%3E)" title="Reference documentation">Java documentation for <code>javax.security.auth.Subject.Subject(boolean, java.util.Set<? extends java.security.Principal>, java.util.Set<?>, java.util.Set<?>)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="DoAs">
<MemberSignature Language="C#" Value="public static Java.Lang.Object? DoAs (Javax.Security.Auth.Subject? subject, Java.Security.IPrivilegedAction? action);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Java.Lang.Object DoAs(class Javax.Security.Auth.Subject subject, class Java.Security.IPrivilegedAction action) cil managed" />
<MemberSignature Language="DocId" Value="M:Javax.Security.Auth.Subject.DoAs(Javax.Security.Auth.Subject,Java.Security.IPrivilegedAction)" />
<MemberSignature Language="F#" Value="static member DoAs : Javax.Security.Auth.Subject * Java.Security.IPrivilegedAction -> Java.Lang.Object" Usage="Javax.Security.Auth.Subject.DoAs (subject, action)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("doAs", "(Ljavax/security/auth/Subject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("doAs", "(Ljavax/security/auth/Subject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;", "")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]</AttributeName>
<AttributeName Language="F#">[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Lang.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="subject" Type="Javax.Security.Auth.Subject" />
<Parameter Name="action" Type="Java.Security.IPrivilegedAction" />
</Parameters>
<Docs>
<param name="subject">the <c>Subject</c> that the specified
<c>action</c> will run as. This parameter
may be <c>null</c>. <p></param>
<param name="<T><T>">the type of the value returned by the PrivilegedAction's
<c>run</c> method.</param>
<param name="action">the code to be run as the specified
<c>Subject</c>. <p></param>
<summary>Perform work as a particular <c>Subject</c>.</summary>
<returns>the value returned by the PrivilegedAction's
<c>run</c> method.</returns>
<remarks>
<para>Perform work as a particular <c>Subject</c>.</para>
<para>This method first retrieves the current Thread's
<c>AccessControlContext</c> via
<c>AccessController.getContext</c>,
and then instantiates a new <c>AccessControlContext</c>
using the retrieved context along with a new
<c>SubjectDomainCombiner</c> (constructed using
the provided <c>Subject</c>).
Finally, this method invokes <c>AccessController.doPrivileged</c>,
passing it the provided <c>PrivilegedAction</c>,
as well as the newly constructed <c>AccessControlContext</c>.</para>
<para />
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/javax/security/auth/Subject#doAs(javax.security.auth.Subject,%20java.security.PrivilegedAction%3CT%3E)" title="Reference documentation">Java documentation for <code>javax.security.auth.Subject.doAs(javax.security.auth.Subject, java.security.PrivilegedAction<T>)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="DoAs">
<MemberSignature Language="C#" Value="public static Java.Lang.Object? DoAs (Javax.Security.Auth.Subject? subject, Java.Security.IPrivilegedExceptionAction? action);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Java.Lang.Object DoAs(class Javax.Security.Auth.Subject subject, class Java.Security.IPrivilegedExceptionAction action) cil managed" />
<MemberSignature Language="DocId" Value="M:Javax.Security.Auth.Subject.DoAs(Javax.Security.Auth.Subject,Java.Security.IPrivilegedExceptionAction)" />
<MemberSignature Language="F#" Value="static member DoAs : Javax.Security.Auth.Subject * Java.Security.IPrivilegedExceptionAction -> Java.Lang.Object" Usage="Javax.Security.Auth.Subject.DoAs (subject, action)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("doAs", "(Ljavax/security/auth/Subject;Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("doAs", "(Ljavax/security/auth/Subject;Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;", "")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]</AttributeName>
<AttributeName Language="F#">[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Lang.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="subject" Type="Javax.Security.Auth.Subject" />
<Parameter Name="action" Type="Java.Security.IPrivilegedExceptionAction" />
</Parameters>
<Docs>
<param name="subject">the <c>Subject</c> that the specified
<c>action</c> will run as. This parameter
may be <c>null</c>. <p></param>
<param name="<T><T>">the type of the value returned by the
PrivilegedExceptionAction's <c>run</c> method.</param>
<param name="action">the code to be run as the specified
<c>Subject</c>. <p></param>
<summary>Perform work as a particular <c>Subject</c>.</summary>
<returns>the value returned by the
PrivilegedExceptionAction's <c>run</c> method.</returns>
<remarks>
<para>Perform work as a particular <c>Subject</c>.</para>
<para>This method first retrieves the current Thread's
<c>AccessControlContext</c> via
<c>AccessController.getContext</c>,
and then instantiates a new <c>AccessControlContext</c>
using the retrieved context along with a new
<c>SubjectDomainCombiner</c> (constructed using
the provided <c>Subject</c>).
Finally, this method invokes <c>AccessController.doPrivileged</c>,
passing it the provided <c>PrivilegedExceptionAction</c>,
as well as the newly constructed <c>AccessControlContext</c>.</para>
<para />
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/javax/security/auth/Subject#doAs(javax.security.auth.Subject,%20java.security.PrivilegedExceptionAction%3CT%3E)" title="Reference documentation">Java documentation for <code>javax.security.auth.Subject.doAs(javax.security.auth.Subject, java.security.PrivilegedExceptionAction<T>)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="DoAsPrivileged">
<MemberSignature Language="C#" Value="public static Java.Lang.Object? DoAsPrivileged (Javax.Security.Auth.Subject? subject, Java.Security.IPrivilegedAction? action, Java.Security.AccessControlContext? acc);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Java.Lang.Object DoAsPrivileged(class Javax.Security.Auth.Subject subject, class Java.Security.IPrivilegedAction action, class Java.Security.AccessControlContext acc) cil managed" />
<MemberSignature Language="DocId" Value="M:Javax.Security.Auth.Subject.DoAsPrivileged(Javax.Security.Auth.Subject,Java.Security.IPrivilegedAction,Java.Security.AccessControlContext)" />
<MemberSignature Language="F#" Value="static member DoAsPrivileged : Javax.Security.Auth.Subject * Java.Security.IPrivilegedAction * Java.Security.AccessControlContext -> Java.Lang.Object" Usage="Javax.Security.Auth.Subject.DoAsPrivileged (subject, action, acc)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("doAsPrivileged", "(Ljavax/security/auth/Subject;Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("doAsPrivileged", "(Ljavax/security/auth/Subject;Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;", "")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]</AttributeName>
<AttributeName Language="F#">[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Lang.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="subject" Type="Javax.Security.Auth.Subject" />
<Parameter Name="action" Type="Java.Security.IPrivilegedAction" />
<Parameter Name="acc" Type="Java.Security.AccessControlContext" />
</Parameters>
<Docs>
<param name="subject">the <c>Subject</c> that the specified
<c>action</c> will run as. This parameter
may be <c>null</c>. <p></param>
<param name="<T><T>">the type of the value returned by the PrivilegedAction's
<c>run</c> method.</param>
<param name="action">the code to be run as the specified
<c>Subject</c>. <p></param>
<param name="acc">the <c>AccessControlContext</c> to be tied to the
specified <i>subject</i> and <i>action</i>. <p></param>
<summary>Perform privileged work as a particular <c>Subject</c>.</summary>
<returns>the value returned by the PrivilegedAction's
<c>run</c> method.</returns>
<remarks>
<para>Perform privileged work as a particular <c>Subject</c>.</para>
<para>This method behaves exactly as <c>Subject.doAs</c>,
except that instead of retrieving the current Thread's
<c>AccessControlContext</c>, it uses the provided
<c>AccessControlContext</c>. If the provided
<c>AccessControlContext</c> is <c>null</c>,
this method instantiates a new <c>AccessControlContext</c>
with an empty collection of ProtectionDomains.</para>
<para />
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/javax/security/auth/Subject#doAsPrivileged(javax.security.auth.Subject,%20java.security.PrivilegedAction%3CT%3E,%20java.security.AccessControlContext)" title="Reference documentation">Java documentation for <code>javax.security.auth.Subject.doAsPrivileged(javax.security.auth.Subject, java.security.PrivilegedAction<T>, java.security.AccessControlContext)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="DoAsPrivileged">
<MemberSignature Language="C#" Value="public static Java.Lang.Object? DoAsPrivileged (Javax.Security.Auth.Subject? subject, Java.Security.IPrivilegedExceptionAction? action, Java.Security.AccessControlContext? acc);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Java.Lang.Object DoAsPrivileged(class Javax.Security.Auth.Subject subject, class Java.Security.IPrivilegedExceptionAction action, class Java.Security.AccessControlContext acc) cil managed" />
<MemberSignature Language="DocId" Value="M:Javax.Security.Auth.Subject.DoAsPrivileged(Javax.Security.Auth.Subject,Java.Security.IPrivilegedExceptionAction,Java.Security.AccessControlContext)" />
<MemberSignature Language="F#" Value="static member DoAsPrivileged : Javax.Security.Auth.Subject * Java.Security.IPrivilegedExceptionAction * Java.Security.AccessControlContext -> Java.Lang.Object" Usage="Javax.Security.Auth.Subject.DoAsPrivileged (subject, action, acc)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("doAsPrivileged", "(Ljavax/security/auth/Subject;Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("doAsPrivileged", "(Ljavax/security/auth/Subject;Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;", "")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]</AttributeName>
<AttributeName Language="F#">[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Lang.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="subject" Type="Javax.Security.Auth.Subject" />
<Parameter Name="action" Type="Java.Security.IPrivilegedExceptionAction" />
<Parameter Name="acc" Type="Java.Security.AccessControlContext" />
</Parameters>
<Docs>
<param name="subject">the <c>Subject</c> that the specified
<c>action</c> will run as. This parameter
may be <c>null</c>. <p></param>
<param name="<T><T>">the type of the value returned by the
PrivilegedExceptionAction's <c>run</c> method.</param>
<param name="action">the code to be run as the specified
<c>Subject</c>. <p></param>
<param name="acc">the <c>AccessControlContext</c> to be tied to the
specified <i>subject</i> and <i>action</i>. <p></param>
<summary>Perform privileged work as a particular <c>Subject</c>.</summary>
<returns>the value returned by the
PrivilegedExceptionAction's <c>run</c> method.</returns>
<remarks>
<para>Perform privileged work as a particular <c>Subject</c>.</para>
<para>This method behaves exactly as <c>Subject.doAs</c>,
except that instead of retrieving the current Thread's
<c>AccessControlContext</c>, it uses the provided
<c>AccessControlContext</c>. If the provided
<c>AccessControlContext</c> is <c>null</c>,
this method instantiates a new <c>AccessControlContext</c>
with an empty collection of ProtectionDomains.</para>
<para />
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/javax/security/auth/Subject#doAsPrivileged(javax.security.auth.Subject,%20java.security.PrivilegedExceptionAction%3CT%3E,%20java.security.AccessControlContext)" title="Reference documentation">Java documentation for <code>javax.security.auth.Subject.doAsPrivileged(javax.security.auth.Subject, java.security.PrivilegedExceptionAction<T>, java.security.AccessControlContext)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="GetPrincipals">
<MemberSignature Language="C#" Value="public System.Collections.ICollection? GetPrincipals (Java.Lang.Class? c);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Collections.ICollection GetPrincipals(class Java.Lang.Class c) cil managed" />
<MemberSignature Language="DocId" Value="M:Javax.Security.Auth.Subject.GetPrincipals(Java.Lang.Class)" />
<MemberSignature Language="F#" Value="member this.GetPrincipals : Java.Lang.Class -> System.Collections.ICollection" Usage="subject.GetPrincipals c" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getPrincipals", "(Ljava/lang/Class;)Ljava/util/Set;", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getPrincipals", "(Ljava/lang/Class;)Ljava/util/Set;", "")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[Java.Interop.JavaTypeParameters(new System.String[] { "T extends java.security.Principal" })]</AttributeName>
<AttributeName Language="F#">[<Java.Interop.JavaTypeParameters(new System.String[] { "T extends java.security.Principal" })>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Collections.ICollection</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="c" Type="Java.Lang.Class" />
</Parameters>
<Docs>
<param name="<T><T>">the type of the class modeled by <c>c</c></param>
<param name="c">the returned <c>Set</c> of Principals will all be
instances of this class.</param>
<summary>Return a <c>Set</c> of Principals associated with this
<c>Subject</c> that are instances or subclasses of the specified
<c>Class</c>.</summary>
<returns>a <c>Set</c> of Principals that are instances of the
specified <c>Class</c>.</returns>
<remarks>
<para>Return a <c>Set</c> of Principals associated with this
<c>Subject</c> that are instances or subclasses of the specified
<c>Class</c>.</para>
<para>The returned <c>Set</c> is not backed by this Subject's
internal <c>Principal</c><c>Set</c>. A new
<c>Set</c> is created and returned for each method invocation.
Modifications to the returned <c>Set</c>
will not affect the internal <c>Principal</c><c>Set</c>.</para>
<para />
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/javax/security/auth/Subject#getPrincipals(java.lang.Class%3CT%3E)" title="Reference documentation">Java documentation for <code>javax.security.auth.Subject.getPrincipals(java.lang.Class<T>)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="GetPrivateCredentials">
<MemberSignature Language="C#" Value="public System.Collections.ICollection? GetPrivateCredentials (Java.Lang.Class? c);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Collections.ICollection GetPrivateCredentials(class Java.Lang.Class c) cil managed" />
<MemberSignature Language="DocId" Value="M:Javax.Security.Auth.Subject.GetPrivateCredentials(Java.Lang.Class)" />
<MemberSignature Language="F#" Value="member this.GetPrivateCredentials : Java.Lang.Class -> System.Collections.ICollection" Usage="subject.GetPrivateCredentials c" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getPrivateCredentials", "(Ljava/lang/Class;)Ljava/util/Set;", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getPrivateCredentials", "(Ljava/lang/Class;)Ljava/util/Set;", "")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]</AttributeName>
<AttributeName Language="F#">[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Collections.ICollection</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="c" Type="Java.Lang.Class" />
</Parameters>
<Docs>
<param name="<T><T>">the type of the class modeled by <c>c</c></param>
<param name="c">the returned <c>Set</c> of private credentials will all be
instances of this class.</param>
<summary>Return a <c>Set</c> of private credentials associated with this
<c>Subject</c> that are instances or subclasses of the specified
<c>Class</c>.</summary>
<returns>a <c>Set</c> of private credentials that are instances
of the specified <c>Class</c>.</returns>
<remarks>
<para>Return a <c>Set</c> of private credentials associated with this
<c>Subject</c> that are instances or subclasses of the specified
<c>Class</c>.</para>
<para>The caller must have permission to access all of the
requested Credentials, or a <c>SecurityException</c>
will be thrown.</para>
<para>The returned <c>Set</c> is not backed by this Subject's
internal private Credential <c>Set</c>. A new
<c>Set</c> is created and returned for each method invocation.
Modifications to the returned <c>Set</c>
will not affect the internal private Credential <c>Set</c>.</para>
<para />
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/javax/security/auth/Subject#getPrivateCredentials(java.lang.Class%3CT%3E)" title="Reference documentation">Java documentation for <code>javax.security.auth.Subject.getPrivateCredentials(java.lang.Class<T>)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="GetPublicCredentials">
<MemberSignature Language="C#" Value="public System.Collections.ICollection? GetPublicCredentials (Java.Lang.Class? c);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Collections.ICollection GetPublicCredentials(class Java.Lang.Class c) cil managed" />
<MemberSignature Language="DocId" Value="M:Javax.Security.Auth.Subject.GetPublicCredentials(Java.Lang.Class)" />
<MemberSignature Language="F#" Value="member this.GetPublicCredentials : Java.Lang.Class -> System.Collections.ICollection" Usage="subject.GetPublicCredentials c" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getPublicCredentials", "(Ljava/lang/Class;)Ljava/util/Set;", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getPublicCredentials", "(Ljava/lang/Class;)Ljava/util/Set;", "")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]</AttributeName>
<AttributeName Language="F#">[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Collections.ICollection</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="c" Type="Java.Lang.Class" />
</Parameters>
<Docs>
<param name="<T><T>">the type of the class modeled by <c>c</c></param>
<param name="c">the returned <c>Set</c> of public credentials will all be
instances of this class.</param>
<summary>Return a <c>Set</c> of public credentials associated with this
<c>Subject</c> that are instances or subclasses of the specified
<c>Class</c>.</summary>
<returns>a <c>Set</c> of public credentials that are instances
of the specified <c>Class</c>.</returns>
<remarks>
<para>Return a <c>Set</c> of public credentials associated with this
<c>Subject</c> that are instances or subclasses of the specified
<c>Class</c>.</para>
<para>The returned <c>Set</c> is not backed by this Subject's
internal public Credential <c>Set</c>. A new
<c>Set</c> is created and returned for each method invocation.
Modifications to the returned <c>Set</c>
will not affect the internal public Credential <c>Set</c>.</para>
<para />
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/javax/security/auth/Subject#getPublicCredentials(java.lang.Class%3CT%3E)" title="Reference documentation">Java documentation for <code>javax.security.auth.Subject.getPublicCredentials(java.lang.Class<T>)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="GetSubject">
<MemberSignature Language="C#" Value="public static Javax.Security.Auth.Subject? GetSubject (Java.Security.AccessControlContext? acc);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Javax.Security.Auth.Subject GetSubject(class Java.Security.AccessControlContext acc) cil managed" />
<MemberSignature Language="DocId" Value="M:Javax.Security.Auth.Subject.GetSubject(Java.Security.AccessControlContext)" />
<MemberSignature Language="F#" Value="static member GetSubject : Java.Security.AccessControlContext -> Javax.Security.Auth.Subject" Usage="Javax.Security.Auth.Subject.GetSubject acc" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getSubject", "(Ljava/security/AccessControlContext;)Ljavax/security/auth/Subject;", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getSubject", "(Ljava/security/AccessControlContext;)Ljavax/security/auth/Subject;", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Javax.Security.Auth.Subject</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="acc" Type="Java.Security.AccessControlContext" />
</Parameters>
<Docs>
<param name="acc">the <c>AccessControlContext</c> from which to retrieve
the <c>Subject</c>.</param>
<summary>Get the <c>Subject</c> associated with the provided
<c>AccessControlContext</c>.</summary>
<returns>the <c>Subject</c> associated with the provided
<c>AccessControlContext</c>, or <c>null</c>
if no <c>Subject</c> is associated
with the provided <c>AccessControlContext</c>.</returns>
<remarks>
<para>Get the <c>Subject</c> associated with the provided
<c>AccessControlContext</c>.</para>
<para>The <c>AccessControlContext</c> may contain many
Subjects (from nested <c>doAs</c> calls).
In this situation, the most recent <c>Subject</c> associated
with the <c>AccessControlContext</c> is returned.</para>
<para />
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/javax/security/auth/Subject#getSubject(java.security.AccessControlContext)" title="Reference documentation">Java documentation for <code>javax.security.auth.Subject.getSubject(java.security.AccessControlContext)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="IsReadOnly">
<MemberSignature Language="C#" Value="public bool IsReadOnly { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsReadOnly" />
<MemberSignature Language="DocId" Value="P:Javax.Security.Auth.Subject.IsReadOnly" />
<MemberSignature Language="F#" Value="member this.IsReadOnly : bool" Usage="Javax.Security.Auth.Subject.IsReadOnly" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("isReadOnly", "()Z", "")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("isReadOnly", "()Z", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Query whether this <c>Subject</c> is read-only.</summary>
<value>true if this <c>Subject</c> is read-only, false otherwise.</value>
<remarks>
<para>Query whether this <c>Subject</c> is read-only.</para>
<para />
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/javax/security/auth/Subject#isReadOnly()" title="Reference documentation">Java documentation for <code>javax.security.auth.Subject.isReadOnly()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="JniPeerMembers">
<MemberSignature Language="C#" Value="public override Java.Interop.JniPeerMembers JniPeerMembers { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.Interop.JniPeerMembers JniPeerMembers" />
<MemberSignature Language="DocId" Value="P:Javax.Security.Auth.Subject.JniPeerMembers" />
<MemberSignature Language="F#" Value="member this.JniPeerMembers : Java.Interop.JniPeerMembers" Usage="Javax.Security.Auth.Subject.JniPeerMembers" />
<MemberType>Property</MemberType>
<Implements>
<InterfaceMember>P:Java.Interop.IJavaPeerable.JniPeerMembers</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Interop.JniPeerMembers</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Principals">
<MemberSignature Language="C#" Value="public System.Collections.Generic.ICollection<Java.Security.IPrincipal>? Principals { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Collections.Generic.ICollection`1<class Java.Security.IPrincipal> Principals" />
<MemberSignature Language="DocId" Value="P:Javax.Security.Auth.Subject.Principals" />
<MemberSignature Language="F#" Value="member this.Principals : System.Collections.Generic.ICollection<Java.Security.IPrincipal>" Usage="Javax.Security.Auth.Subject.Principals" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getPrincipals", "()Ljava/util/Set;", "")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getPrincipals", "()Ljava/util/Set;", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Collections.Generic.ICollection<Java.Security.IPrincipal></ReturnType>
</ReturnValue>
<Docs>
<summary>Return the <c>Set</c> of Principals associated with this
<c>Subject</c>.</summary>
<value>The <c>Set</c> of Principals associated with this
<c>Subject</c>.</value>
<remarks>
<para>Return the <c>Set</c> of Principals associated with this
<c>Subject</c>. Each <c>Principal</c> represents
an identity for this <c>Subject</c>.</para>
<para>The returned <c>Set</c> is backed by this Subject's
internal <c>Principal</c><c>Set</c>. Any modification
to the returned <c>Set</c> affects the internal
<c>Principal</c><c>Set</c> as well.</para>
<para />
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/javax/security/auth/Subject#getPrincipals()" title="Reference documentation">Java documentation for <code>javax.security.auth.Subject.getPrincipals()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="PrivateCredentials">
<MemberSignature Language="C#" Value="public System.Collections.Generic.ICollection<Java.Lang.Object>? PrivateCredentials { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Collections.Generic.ICollection`1<class Java.Lang.Object> PrivateCredentials" />
<MemberSignature Language="DocId" Value="P:Javax.Security.Auth.Subject.PrivateCredentials" />
<MemberSignature Language="F#" Value="member this.PrivateCredentials : System.Collections.Generic.ICollection<Java.Lang.Object>" Usage="Javax.Security.Auth.Subject.PrivateCredentials" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getPrivateCredentials", "()Ljava/util/Set;", "")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getPrivateCredentials", "()Ljava/util/Set;", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Collections.Generic.ICollection<Java.Lang.Object></ReturnType>
</ReturnValue>
<Docs>
<summary>Return the <c>Set</c> of private credentials held by this
<c>Subject</c>.</summary>
<value>A <c>Set</c> of private credentials held by this
<c>Subject</c>.</value>
<remarks>
<para>Return the <c>Set</c> of private credentials held by this
<c>Subject</c>.</para>
<para>The returned <c>Set</c> is backed by this Subject's
internal private Credential <c>Set</c>. Any modification
to the returned <c>Set</c> affects the internal private
Credential <c>Set</c> as well.</para>
<para>A caller requires permissions to access the Credentials
in the returned <c>Set</c>, or to modify the
<c>Set</c> itself. A <c>SecurityException</c>
is thrown if the caller does not have the proper permissions.</para>
<para>While iterating through the <c>Set</c>,
a <c>SecurityException</c> is thrown
if the caller does not have permission to access a
particular Credential. The <c>Iterator</c>
is nevertheless advanced to next element in the <c>Set</c>.</para>
<para />
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/javax/security/auth/Subject#getPrivateCredentials()" title="Reference documentation">Java documentation for <code>javax.security.auth.Subject.getPrivateCredentials()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="PublicCredentials">
<MemberSignature Language="C#" Value="public System.Collections.Generic.ICollection<Java.Lang.Object>? PublicCredentials { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Collections.Generic.ICollection`1<class Java.Lang.Object> PublicCredentials" />
<MemberSignature Language="DocId" Value="P:Javax.Security.Auth.Subject.PublicCredentials" />
<MemberSignature Language="F#" Value="member this.PublicCredentials : System.Collections.Generic.ICollection<Java.Lang.Object>" Usage="Javax.Security.Auth.Subject.PublicCredentials" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getPublicCredentials", "()Ljava/util/Set;", "")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getPublicCredentials", "()Ljava/util/Set;", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Collections.Generic.ICollection<Java.Lang.Object></ReturnType>
</ReturnValue>
<Docs>
<summary>Return the <c>Set</c> of public credentials held by this
<c>Subject</c>.</summary>
<value>A <c>Set</c> of public credentials held by this
<c>Subject</c>.</value>
<remarks>
<para>Return the <c>Set</c> of public credentials held by this
<c>Subject</c>.</para>
<para>The returned <c>Set</c> is backed by this Subject's
internal public Credential <c>Set</c>. Any modification
to the returned <c>Set</c> affects the internal public
Credential <c>Set</c> as well.</para>
<para />
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/javax/security/auth/Subject#getPublicCredentials()" title="Reference documentation">Java documentation for <code>javax.security.auth.Subject.getPublicCredentials()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="SetReadOnly">
<MemberSignature Language="C#" Value="public void SetReadOnly ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetReadOnly() cil managed" />
<MemberSignature Language="DocId" Value="M:Javax.Security.Auth.Subject.SetReadOnly" />
<MemberSignature Language="F#" Value="member this.SetReadOnly : unit -> unit" Usage="subject.SetReadOnly " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("setReadOnly", "()V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("setReadOnly", "()V", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Set this <c>Subject</c> to be read-only.</summary>
<remarks>
<para>Set this <c>Subject</c> to be read-only.</para>
<para>Modifications (additions and removals) to this Subject's
<c>Principal</c><c>Set</c> and
credential Sets will be disallowed.
The <c>destroy</c> operation on this Subject's credentials will
still be permitted.</para>
<para>Subsequent attempts to modify the Subject's <c>Principal</c>
and credential Sets will result in an
<c>IllegalStateException</c> being thrown.
Also, once a <c>Subject</c> is read-only,
it can not be reset to being writable again.</para>
<para />
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/javax/security/auth/Subject#setReadOnly()" title="Reference documentation">Java documentation for <code>javax.security.auth.Subject.setReadOnly()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="ThresholdClass">
<MemberSignature Language="C#" Value="protected override IntPtr ThresholdClass { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance native int ThresholdClass" />
<MemberSignature Language="DocId" Value="P:Javax.Security.Auth.Subject.ThresholdClass" />
<MemberSignature Language="F#" Value="member this.ThresholdClass : nativeint" Usage="Javax.Security.Auth.Subject.ThresholdClass" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.IntPtr</ReturnType>
</ReturnValue>
<Docs>
<summary>This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.</summary>
<value>A <see cref="T:System.IntPtr" /> which contains the <c>java.lang.Class</c> JNI value corresponding to this type.</value>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="ThresholdType">
<MemberSignature Language="C#" Value="protected override Type ThresholdType { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Type ThresholdType" />
<MemberSignature Language="DocId" Value="P:Javax.Security.Auth.Subject.ThresholdType" />
<MemberSignature Language="F#" Value="member this.ThresholdType : Type" Usage="Javax.Security.Auth.Subject.ThresholdType" />
<MemberType>Property</MemberType>
<AssemblyInfo>