public class

SystemIdentity

extends Identity
implements Serializable
java.lang.Object
   ↳ java.security.Identity
     ↳ sun.security.provider.SystemIdentity

Class Overview

An identity with a very simple trust mechanism.

Summary

Public Constructors
SystemIdentity(String name, IdentityScope scope)
Public Methods
boolean isTrusted()
Is this identity trusted by sun.* facilities?
String toString()
Returns a short string describing this identity, telling its name and its scope (if any).
Protected Methods
void setTrusted(boolean trusted)
Set the trust status of this identity.
[Expand]
Inherited Methods
From class java.security.Identity
From class java.lang.Object
From interface java.security.Principal

Public Constructors

public SystemIdentity (String name, IdentityScope scope)

Public Methods

public boolean isTrusted ()

Is this identity trusted by sun.* facilities?

public String toString ()

Returns a short string describing this identity, telling its name and its scope (if any).

First, if there is a security manager, its checkSecurityAccess method is called with "printIdentity" as its argument to see if it's ok to return the string.

Returns
  • information about this identity, such as its name and the name of its scope (if any).

Protected Methods

protected void setTrusted (boolean trusted)

Set the trust status of this identity.