|
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.PublicKeySpec
The PublicKeySpec class wraps a java.security.PublicKey object. While this class extends the Capability class it does not have to be a full capability in order to be useful. Its possible for untrusted code to create a PublicKeySpec object from capability material and use it with a Signature object.
Fields inherited from class bees.core.Capability |
DELETE_PERMISSION, id, INVALID_ID |
Constructor Summary | |
PublicKeySpec()
Construct an empty PublicKeySpec. |
|
PublicKeySpec(java.security.PublicKey pk)
Construct a PublicKeySpec with the given value. |
Method Summary | |
void |
createKey(java.lang.String algorithm,
byte[] encoding)
|
java.lang.String |
getAlgorithm()
|
java.lang.String |
getFormat()
|
void |
revoke()
Revoke access to the capability. |
byte[] |
toBytes()
|
java.lang.String |
toString()
|
Methods inherited from class bees.core.security.KeySpec |
getFactory, specFromBytes |
Methods inherited from class bees.core.Capability |
checkPermission, clear, clonePermission, deleteCapability, equals, fromBytes, fromBytes, revokedPermission, revokePermission, revokePermissions, valid |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PublicKeySpec(java.security.PublicKey pk)
pk
- A PublicKey object to be wrapped.public PublicKeySpec()
Method Detail |
public final void createKey(java.lang.String algorithm, byte[] encoding) throws java.security.NoSuchAlgorithmException, java.security.spec.InvalidKeySpecException
bees.core.security.KeySpec#createKey(String, byte[])
public byte[] toBytes()
bees.core.security.KeySpec#toBytes()
public void revoke()
Capability
revoke
in class Capability
Capability.revoke()
public java.lang.String getAlgorithm()
public java.lang.String getFormat()
public java.lang.String toString()
toString
in class KeySpec
Object.toString()
|
Bees v0.5.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |