Class LicenseHelper
- java.lang.Object
-
- com.floragunn.searchguard.support.LicenseHelper
-
public class LicenseHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description LicenseHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringvalidateLicense(String licenseText)Validate pgp signature of license
-
-
-
Method Detail
-
validateLicense
public static String validateLicense(String licenseText) throws org.bouncycastle.openpgp.PGPException
Validate pgp signature of license- Parameters:
licenseText- base64 encoded pgp signed license- Returns:
- The plain license in json (if validation is successful)
- Throws:
org.bouncycastle.openpgp.PGPException- if validation fails
-
-