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

deserialize

Key deserialize(InputBuffer buf)
                throws IOException,
                       InvalidKeySpecException,
                       NoSuchAlgorithmException,
                       NoSuchProviderException
Throws:
IOException
InvalidKeySpecException
NoSuchAlgorithmException
NoSuchProviderException


Copyright © 2010. All Rights Reserved.