edu.nyu.cs.pdsg.util
Interface KeyReaderWriter

All Known Implementing Classes:
RSACrtKeyReaderWriter

public interface KeyReaderWriter


Method Summary
 java.lang.String[] privateKeyTypes()
           
 java.security.KeyPair readKeyPair(java.util.StringTokenizer data)
           
 java.lang.String writeKeyPair(java.security.KeyPair pair)
           
 java.lang.String writeKeyType(java.security.KeyPair pair)
           
 

Method Detail

writeKeyPair

public java.lang.String writeKeyPair(java.security.KeyPair pair)
                              throws java.security.NoSuchAlgorithmException,
                                     java.security.spec.InvalidKeySpecException
Throws:
java.security.NoSuchAlgorithmException
java.security.spec.InvalidKeySpecException

writeKeyType

public java.lang.String writeKeyType(java.security.KeyPair pair)

readKeyPair

public java.security.KeyPair readKeyPair(java.util.StringTokenizer data)
                                  throws java.security.spec.InvalidKeySpecException,
                                         java.security.NoSuchAlgorithmException
Throws:
java.security.spec.InvalidKeySpecException
java.security.NoSuchAlgorithmException

privateKeyTypes

public java.lang.String[] privateKeyTypes()


Copyright (c) 2002-2003 New York University RLAB