|
Bees v0.5.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--bees.core.Capability
|
+--bees.core.security.KeySpec
|
+--bees.core.security.SecretKeySpec
|
+--bees.core.security.SecretKey
A SecretKey capability wraps a javax.crypto.SecretKey object. This makes it possible to pass the object to untrusted code without leaking the key material.
| Field Summary | |
static PermissionSet |
DEFAULT_PERMISSIONS
The default permissions for a new SecretKey capability. |
| Fields inherited from class bees.core.Capability |
DELETE_PERMISSION, id, INVALID_ID |
| Constructor Summary | |
SecretKey()
Construct an empty SecretKey. |
|
| Method Summary | |
protected void |
fromBytes(byte[] flattened)
Bind this capability to the given object. |
byte[] |
toBytes()
|
java.lang.String |
toString()
|
| Methods inherited from class bees.core.security.SecretKeySpec |
createKey, getAlgorithm, revoke |
| Methods inherited from class bees.core.security.KeySpec |
getFactory, specFromBytes |
| Methods inherited from class bees.core.Capability |
checkPermission, clear, clonePermission, deleteCapability, equals, fromBytes, revokedPermission, revokePermission, revokePermissions, valid |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final PermissionSet DEFAULT_PERMISSIONS
| Constructor Detail |
public SecretKey()
| Method Detail |
protected void fromBytes(byte[] flattened)
throws java.lang.Exception
CapabilityfromBytes in class CapabilityCapability.fromBytes(byte[])public byte[] toBytes()
toBytes in class SecretKeySpecbees.core.security.KeySpec#toBytes()public java.lang.String toString()
toString in class SecretKeySpecObject.toString()
|
Bees v0.5.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||