Subject.SetReadOnly Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set this Subject to be read-only.
[Android.Runtime.Register("setReadOnly", "()V", "")]
public void SetReadOnly();
[<Android.Runtime.Register("setReadOnly", "()V", "")>]
member this.SetReadOnly : unit -> unit
- Attributes
Remarks
Set this Subject to be read-only.
Modifications (additions and removals) to this Subject's PrincipalSet and credential Sets will be disallowed. The destroy operation on this Subject's credentials will still be permitted.
Subsequent attempts to modify the Subject's Principal and credential Sets will result in an IllegalStateException being thrown. Also, once a Subject is read-only, it can not be reset to being writable again.
Java documentation for javax.security.auth.Subject.setReadOnly().
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.