Class KeyReadWrite

java.lang.Object
  extended by KeyReadWrite

public class KeyReadWrite
extends java.lang.Object

Trida slouzici pro cteni / zapis verejneho RSA klice do souboru


Constructor Summary
KeyReadWrite(javax.tv.xlet.XletContext context, java.lang.String pubKey)
          Konstruktor tridy
 
Method Summary
 boolean compareKey()
          Funkce porovnavajici dva RSA klice
 java.lang.String readKey()
          Funkce pro cteni klice do souboru
 void writeKey()
          Funkce pro zapis klice do souboru
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyReadWrite

public KeyReadWrite(javax.tv.xlet.XletContext context,
                    java.lang.String pubKey)
Konstruktor tridy

Parameters:
context - Kontext daneho Xletu
pubKey - Retezec s verejnym klicem
Method Detail

writeKey

public void writeKey()
Funkce pro zapis klice do souboru


readKey

public java.lang.String readKey()
Funkce pro cteni klice do souboru

Returns:
Retezec klice

compareKey

public boolean compareKey()
Funkce porovnavajici dva RSA klice

Returns:
Logicka hodnota, true pokud si klice odpovidaji