Rice Pastry API

org.mpisws.p2p.pki.x509
Class KeySerializerImpl

java.lang.Object
  extended by org.mpisws.p2p.pki.x509.KeySerializerImpl
All Implemented Interfaces:
KeySerializer

public class KeySerializerImpl
extends java.lang.Object
implements KeySerializer


Field Summary
 
Fields inherited from interface org.mpisws.p2p.pki.x509.KeySerializer
KEY_PRIVATE, KEY_PUBLIC, KEY_SECRET
 
Constructor Summary
KeySerializerImpl()
           
 
Method Summary
 java.security.Key deserialize(InputBuffer buf)
           
 void serialize(java.security.Key k, OutputBuffer buf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeySerializerImpl

public KeySerializerImpl()
Method Detail

serialize

public void serialize(java.security.Key k,
                      OutputBuffer buf)
               throws java.io.IOException
Specified by:
serialize in interface KeySerializer
Throws:
java.io.IOException

deserialize

public java.security.Key deserialize(InputBuffer buf)
                              throws java.io.IOException,
                                     java.security.spec.InvalidKeySpecException,
                                     java.security.NoSuchAlgorithmException,
                                     java.security.NoSuchProviderException
Specified by:
deserialize in interface KeySerializer
Throws:
java.io.IOException
java.security.spec.InvalidKeySpecException
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection