public interface LicenseVendorContext extends CodecProvider, LicenseApplicationContext, LicenseProvider
LicenseVendorManager with the
required parameters.
For a demonstration of this API, please use the TrueLicense Maven Archetype
to generate a sample project - even if you don't use Maven to build your
software product.
Applications have no need to implement this interface and should not do so because it may be subject to expansion in future versions.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
LicenseVendorContext.ManagerBuilder
A builder for
license vendor managers.
|
LicenseApplicationContext.KsbaInjection<Target>, LicenseApplicationContext.PbeInjection<Target>| Modifier and Type | Method and Description |
|---|---|
Authentication |
keyStore(Source source,
String storeType,
ObfuscatedString storePassword,
String alias,
ObfuscatedString keyPassword)
Configures a key store based authentication.
|
LicenseVendorContext.ManagerBuilder |
manager()
Returns a builder for a
license vendor manager.
|
LicenseVendorManager |
manager(Authentication authentication,
Encryption encryption)
Configures a license vendor manager.
|
Encryption |
pbe(String algorithm,
ObfuscatedString password)
Configures a Password Based Encryption (PBE).
|
codecfileStore, resource, systemNodeStore, userNodeStorecontextlicenseAuthentication keyStore(@CheckForNull Source source, @CheckForNull String storeType, ObfuscatedString storePassword, String alias, @CheckForNull ObfuscatedString keyPassword)
The provided strings should be computed on demand from an obfuscated
form, e.g. by annotating a constant string value with the
@Obfuscate annotation and processing it with the TrueLicense
Maven Plugin.
source - the nullable source for the key store.
May be null if and only if the key store type
does not require loading from an input stream.storeType - the nullable type of the key store,
e.g. "JCEKS" or "JKS".
If this is null, then the value computed by the
expression
ContextProvider.context().storeType()
is used instead.
Otherwise, you need to make sure that the store type is
supported by a security provider on all platforms - see
Java Cryptography Architeture Sun Providers Documentation.storePassword - the password for verifying the integrity of the
key store.alias - the alias of the private key entry in the key store.keyPassword - the nullable password for accessing the private key
in the key entry.
If this is null or empty, then the
storePassword is used instead.IllegalArgumentException - if a password is considered to be too
weak.LicenseVendorContext.ManagerBuilder manager()
Builder.build() method to obtain a configured
license vendor manager.LicenseVendorManager manager(Authentication authentication, Encryption encryption)
authentication - the authentication.encryption - the encryption.Encryption pbe(String algorithm, ObfuscatedString password)
If the given algorithm name is null, then it defaults to
the value computed by the expression
.
Otherwise, you need to make sure that the named algorithm is supported
by a security provider on all platforms - see
Java Cryptography Architeture Sun Providers Documentation.
ContextProvider.context().pbeAlgorithm()
Note that the configured license key format may define additional
constraints.
For example, applications which require compatibility with V1 format
license keys must use the PBEWithMD5AndDES algorithm, so they
should provide null.
If an algorithm name is specified, the string should be computed on
demand from an obfuscated form, e.g. by annotating a constant string
value with the @Obfuscate annotation and processing it with
the TrueLicense Maven Plugin.
pbe in interface LicenseApplicationContextalgorithm - the nullable PBE algorithm name.password - the password.IllegalArgumentException - if the password is considered to be too
weak.Copyright © 2005–2017 Schlichtherle IT Services. All rights reserved.