Bees v0.5.0 API

bees.core.security
Class PrivateKeySpec

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

public class PrivateKeySpec
extends KeySpec

The PrivateKeySpec class wraps a java.security.PrivateKey object.


Fields inherited from class bees.core.Capability
DELETE_PERMISSION, id, INVALID_ID
 
Constructor Summary
PrivateKeySpec()
          Construct an empty PrivateKeySpec.
PrivateKeySpec(java.security.PrivateKey pk)
          Construct a PrivateKeySpec with the given value.
 
Method Summary
 void createKey(java.lang.String algorithm, byte[] encoding)
           
 java.lang.String getAlgorithm()
           
 void revoke()
          Revoke access to the capability.
 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

PrivateKeySpec

public PrivateKeySpec(java.security.PrivateKey pk)
Construct a PrivateKeySpec with the given value.
Parameters:
pk - A PrivateKey object to be wrapped.

PrivateKeySpec

public PrivateKeySpec()
Construct an empty PrivateKeySpec.
Method Detail

createKey

public final void createKey(java.lang.String algorithm,
                            byte[] encoding)
                     throws java.security.NoSuchAlgorithmException,
                            java.security.spec.InvalidKeySpecException
See Also:
bees.core.security.KeySpec#createKey(String, byte[])

revoke

public void revoke()
Description copied from class: Capability
Revoke access to the capability.
Overrides:
revoke in class Capability
See Also:
Capability.revoke()

getAlgorithm

public java.lang.String getAlgorithm()
Returns:
The key algorithm.

toString

public java.lang.String toString()
Overrides:
toString in class KeySpec
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/