Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sourcetap.license
Class LicenseVerifier  view LicenseVerifier download LicenseVerifier.java

java.lang.Object
  extended bycom.sourcetap.license.LicenseVerifier

public class LicenseVerifier
extends java.lang.Object

Verify a License Key using the public key to decrypt it

Version:
$Revision$

Field Summary
private  java.lang.Boolean valid
           
 
Constructor Summary
LicenseVerifier()
           
 
Method Summary
static java.security.PublicKey readPublicKey(java.lang.String URI)
          read a Public Key from a file
private static java.lang.String readSignature(java.lang.String signatureFile)
           
static License validateLicense(java.lang.String licenseEncoded, java.lang.String publicKeyFile)
          decrypt the encoded license key and return the corresponding License Object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valid

private java.lang.Boolean valid
Constructor Detail

LicenseVerifier

public LicenseVerifier()
Method Detail

validateLicense

public static License validateLicense(java.lang.String licenseEncoded,
                                      java.lang.String publicKeyFile)
                               throws LicenseException
decrypt the encoded license key and return the corresponding License Object


readSignature

private static java.lang.String readSignature(java.lang.String signatureFile)
                                       throws java.io.IOException

readPublicKey

public static java.security.PublicKey readPublicKey(java.lang.String URI)
                                             throws LicenseException
read a Public Key from a file