Rice Pastry API

org.mpisws.p2p.pki.x509
Interface KeySerializer

All Known Implementing Classes:
KeySerializerImpl

public interface KeySerializer


Field Summary
static byte KEY_PRIVATE
           
static byte KEY_PUBLIC
           
static byte KEY_SECRET
           
 
Method Summary
 java.security.Key deserialize(InputBuffer buf)
           
 void serialize(java.security.Key k, OutputBuffer buf)
           
 

Field Detail

KEY_PRIVATE

static final byte KEY_PRIVATE
See Also:
Constant Field Values

KEY_PUBLIC

static final byte KEY_PUBLIC
See Also:
Constant Field Values

KEY_SECRET

static final byte KEY_SECRET
See Also:
Constant Field Values
Method Detail

serialize

void serialize(java.security.Key k,
               OutputBuffer buf)
               throws java.io.IOException
Throws:
java.io.IOException

deserialize

java.security.Key deserialize(InputBuffer buf)
                              throws java.io.IOException,
                                     java.security.spec.InvalidKeySpecException,
                                     java.security.NoSuchAlgorithmException,
                                     java.security.NoSuchProviderException
Throws:
java.io.IOException
java.security.spec.InvalidKeySpecException
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection