Bees v0.5.0 API

bees.core.security
Class KeySpec

java.lang.Object
  |
  +--bees.core.Capability
        |
        +--bees.core.security.KeySpec
All Implemented Interfaces:
CapabilitySpec
Direct Known Subclasses:
PrivateKeySpec, PublicKeySpec, SecretKeySpec

public abstract class KeySpec
extends Capability
implements CapabilitySpec

A KeySpec is a base class for the various cryptographic key classes.


Fields inherited from class bees.core.Capability
DELETE_PERMISSION, id, INVALID_ID
 
Constructor Summary
KeySpec()
          Construct an empty KeySpec.
 
Method Summary
 SpecCapabilityFactory getFactory()
           
 CapabilitySpec specFromBytes(byte[] flattened)
          Initialize this object from the given flattened version of the object.
 java.lang.String toString()
           
 
Methods inherited from class bees.core.Capability
checkPermission, clear, clonePermission, deleteCapability, equals, fromBytes, fromBytes, revoke, revokedPermission, revokePermission, revokePermissions, valid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeySpec

public KeySpec()
Construct an empty KeySpec.
Method Detail

specFromBytes

public final CapabilitySpec specFromBytes(byte[] flattened)
                                   throws java.security.NoSuchAlgorithmException,
                                          java.security.spec.InvalidKeySpecException
Description copied from interface: CapabilitySpec
Initialize this object from the given flattened version of the object.
Specified by:
specFromBytes in interface CapabilitySpec
See Also:
CapabilitySpec.specFromBytes(byte[])

getFactory

public SpecCapabilityFactory getFactory()
Specified by:
getFactory in interface CapabilitySpec
See Also:
CapabilitySpec.getFactory()

toString

public java.lang.String toString()
Overrides:
toString in class Capability
See Also:
Object.toString()

Bees v0.5.0 API

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/