Lines Matching refs:scope

33  * <p>This class represents a scope for identities. It is an Identity
34 * itself, and therefore has a name and can have a scope. It can also
45 * there can only be one copy of one key per scope. For example, suppose
48 * associated certificates. It is named in the scope using the name
49 * "Acme Software". No other named Identity in the scope has the same
70 /* The system's scope */
71 private static IdentityScope scope;
73 // initialize the system scope
79 return Security.getProperty("system.scope");
91 //Security.error("unable to establish a system scope from " +
107 * Constructs a new identity scope with the specified name.
109 * @param name the scope name.
116 * Constructs a new identity scope with the specified name and scope.
118 * @param name the scope name.
119 * @param scope the scope for the new identity scope.
122 * with the same name in the scope.
124 public IdentityScope(String name, IdentityScope scope)
126 super(name, scope);
130 * Returns the system's identity scope.
132 * @return the system's identity scope, or {@code null} if none has been
138 if (scope == null) {
141 return scope;
146 * Sets the system's identity scope.
151 * as its argument to see if it's ok to set the identity scope.
153 * @param scope the scope to set.
157 * setting the identity scope.
162 protected static void setSystemScope(IdentityScope scope) {
164 IdentityScope.scope = scope;
168 * Returns the number of identities within this identity scope.
170 * @return the number of identities within this identity scope.
175 * Returns the identity in this scope with the specified name (if any).
180 * no identities named <code>name</code> in this scope.
193 * in this scope.
205 * no identities in this scope with that key.
210 * Adds an identity to this identity scope.
222 * Removes an identity from this identity scope.
233 * Returns an enumeration of all identities in this identity scope.
235 * @return an enumeration of all identities in this identity scope.
240 * Returns a string representation of this identity scope, including
241 * its name, its scope name, and the number of identities in this
242 * identity scope.
244 * @return a string representation of this identity scope.