public class OctetLicenseVerifier extends Object implements ILicenseVerifier
| Constructor and Description |
|---|
OctetLicenseVerifier()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected static String |
ungroup(String s)
Returns the un-grouped version of the key.
|
protected boolean |
verify(byte[] signature,
SimpleLicense license,
ILicenseContext context)
Verifies the signature
|
ILicense |
verify(String licenseKey,
ILicenseContext context)
Verifies the given license string.
|
public ILicense verify(String licenseKey, ILicenseContext context)
verify in interface ILicenseVerifierlicenseKey - the license stringcontext - the verification contextprotected boolean verify(byte[] signature,
SimpleLicense license,
ILicenseContext context)
throws DecryptionException,
SigningException,
UnsupportedEncodingException
signature - signature to be verifiedlicense - the license to be checked againstcontext - the contexttrue when signature is okDecryptionExceptionSigningExceptionUnsupportedEncodingExceptionCopyright © 2014. All rights reserved.