FileDocCategorySizeDatePackage
XYZIdentityScope.javaAPI DocExample3363Sun Oct 25 18:13:36 GMT 1998None

XYZIdentityScope

public class XYZIdentityScope extends IdentityScope

Fields Summary
private transient IdentityScope
publicScope
private transient IdentityScope
privateScope
Constructors Summary
public XYZIdentityScope()

		super("XYZIdentityScope");
		privateScope = new XYZFileScope("/floppy/floppy0/private");
		publicScope = new XYZFileScope("/auto/shared/sharedScope");
		setSystemScope(this);
	
Methods Summary
public voidaddIdentity(java.security.Identity identity)

		throw new KeyManagementException("This scope does not support adding identities");
	
public java.security.IdentitygetIdentity(java.lang.String name)

		Identity id;
		id = privateScope.getIdentity(name);
		if (id == null)
			id = publicScope.getIdentity(name);
		return id;
	
public java.security.IdentitygetIdentity(java.security.PublicKey key)

		Identity id;
		id = privateScope.getIdentity(key);
		if (id == null)
			id = publicScope.getIdentity(key);
		return id;
	
public java.util.Enumerationidentities()

		return new XYZIdentityScopeEnumerator();
	
public voidremoveIdentity(java.security.Identity identity)

		throw new KeyManagementException("This scope does not support removing identities");
	
public intsize()

		return publicScope.size() + privateScope.size();