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 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
 Key deserialize(InputBuffer buf)
           
 void serialize(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(Key k,
                      OutputBuffer buf)
               throws IOException
Specified by:
serialize in interface KeySerializer
Throws:
IOException

deserialize

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


Copyright © 2010. All Rights Reserved.