Methods Summary |
---|
public void | addCertificate(java.security.Certificate cert)
Identity i = getScope().getIdentity(cert.getPublicKey());
if (i != null && !equals(i))
throw new KeyManagementException("Duplicate public key");
super.addCertificate(cert);
|
public int | getTrust()
return trustLevel;
|
public void | setPublicKey(java.security.PublicKey key)
IdentityScope is = getScope();
Identity i = is.getIdentity(key);
if (i != null && !equals(i))
throw new KeyManagementException("Duplicate public key");
super.setPublicKey(key);
|
void | setTrust(int x)
if (x < 0 || x > 10)
throw new IllegalArgumentException("Invalid trust level");
trustLevel = x;
|
public java.lang.String | toString()
return super.toString() + " trust level: " + trustLevel;
|