bees.core.security
Class PrivateKey
java.lang.Object
|
+--bees.core.Capability
|
+--bees.core.security.KeySpec
|
+--bees.core.security.PrivateKeySpec
|
+--bees.core.security.PrivateKey
- All Implemented Interfaces:
- CapabilitySpec
- public final class PrivateKey
- extends PrivateKeySpec
A PrivateKey capability wraps a java.security.PrivateKey object. This makes
it possible to pass the object to untrusted code without leaking the key
material.
Constructor Summary |
PrivateKey()
Construct an empty PrivateKey. |
Method Summary |
protected void |
fromBytes(byte[] flattened)
Bind this capability to the given object. |
void |
revoke()
Revoke access to the capability. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DEFAULT_PERMISSIONS
public static final PermissionSet DEFAULT_PERMISSIONS
- The default permissions for a PrivateKey capability.
PrivateKey
public PrivateKey()
- Construct an empty PrivateKey.
fromBytes
protected final void fromBytes(byte[] flattened)
throws java.security.NoSuchAlgorithmException,
java.security.spec.InvalidKeySpecException,
java.lang.Exception
- Description copied from class:
Capability
- Bind this capability to the given object.
- Overrides:
fromBytes
in class Capability
- See Also:
Capability.fromBytes(byte[])
revoke
public void revoke()
- Description copied from class:
Capability
- Revoke access to the capability.
- Overrides:
revoke
in class PrivateKeySpec
- See Also:
Capability.revoke()
toString
public java.lang.String toString()
- Overrides:
toString
in class PrivateKeySpec
- See Also:
Object.toString()
This documentation is Copyright (C) 2002 The University of Utah. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for Bees v0.5.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/