edu.nyu.cs.pdsg.util
Class RSACrtKeyReaderWriter

java.lang.Object
  extended byedu.nyu.cs.pdsg.util.RSACrtKeyReaderWriter
All Implemented Interfaces:
KeyReaderWriter

public class RSACrtKeyReaderWriter
extends java.lang.Object
implements KeyReaderWriter

Provides methods to read/write RSACRTKeys to/from strings


Constructor Summary
RSACrtKeyReaderWriter()
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSACrtKeyReaderWriter

public RSACrtKeyReaderWriter()
Method Detail

writeKeyPair

public java.lang.String writeKeyPair(java.security.KeyPair pair)
                              throws java.security.NoSuchAlgorithmException,
                                     java.security.spec.InvalidKeySpecException
Specified by:
writeKeyPair in interface KeyReaderWriter
Throws:
java.security.NoSuchAlgorithmException
java.security.spec.InvalidKeySpecException

writeKeyType

public java.lang.String writeKeyType(java.security.KeyPair pair)
Specified by:
writeKeyType in interface KeyReaderWriter

readKeyPair

public java.security.KeyPair readKeyPair(java.util.StringTokenizer data)
                                  throws java.security.spec.InvalidKeySpecException,
                                         java.security.NoSuchAlgorithmException
Specified by:
readKeyPair in interface KeyReaderWriter
Throws:
java.security.spec.InvalidKeySpecException
java.security.NoSuchAlgorithmException

privateKeyTypes

public java.lang.String[] privateKeyTypes()
Specified by:
privateKeyTypes in interface KeyReaderWriter


Copyright (c) 2002-2003 New York University RLAB