public abstract class DeserializingLicenseProvider extends Object implements LicenseProvider
LicenseProvider interface that assumes the license will be stored in
serialized form. Users need only implement the method returning the raw byte data of the serialized license in order
to complete this implementation.| Constructor and Description |
|---|
DeserializingLicenseProvider() |
| Modifier and Type | Method and Description |
|---|---|
SignedLicense |
deserializeLicense(byte[] data) |
SignedLicense |
getLicense(Object context)
Gets the stored, still-encrypted license content and signature from the persistence store.
|
protected abstract byte[] |
getLicenseData(Object context)
Gets the stored, still-encrypted, still-serialized license content and signature from the persistence store.
|
public final SignedLicense getLicense(Object context)
getLicense in interface LicenseProvidercontext - The context for which to get the licensepublic final SignedLicense deserializeLicense(byte[] data)
protected abstract byte[] getLicenseData(Object context)
context - The context for which to get the licenseCopyright © 2010-2013 NWTS Java Code. All Rights Reserved. Licensed Under the Apache License version 2.0.