A B C D E F G H I K L N O P R S T U V W 

A

add(E) - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableAbstractCollection
 
add(int, E) - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableArrayList
 
add(E) - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableListIterator
 
addAll(Collection<? extends E>) - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableAbstractCollection
 
addAll(int, Collection<? extends E>) - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableArrayList
 
addFeature(String) - Method in class net.nicholaswilliams.java.licensing.License.Builder
Adds a feature to this license with no expiration date.
addFeature(String, long) - Method in class net.nicholaswilliams.java.licensing.License.Builder
Adds a feature to this license with the specified expiration date (millisecond timestamp).
addFeature(License.Feature) - Method in class net.nicholaswilliams.java.licensing.License.Builder
Adds the existing feature object to this license.
AlgorithmNotSupportedException - Exception in net.nicholaswilliams.java.licensing.exception
This exception is thrown when the specified algorithm is not supported by this JVM.
AlgorithmNotSupportedException() - Constructor for exception net.nicholaswilliams.java.licensing.exception.AlgorithmNotSupportedException
 
AlgorithmNotSupportedException(String) - Constructor for exception net.nicholaswilliams.java.licensing.exception.AlgorithmNotSupportedException
 
AlgorithmNotSupportedException(Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.AlgorithmNotSupportedException
 
AlgorithmNotSupportedException(String, Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.AlgorithmNotSupportedException
 

B

build() - Method in class net.nicholaswilliams.java.licensing.License.Builder
Builds the license based on the criteria in this builder, then returns it.

C

checkValidity() - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableAbstractCollection
Checks the validity of this object, and throws an ImmutableModifiedThroughReflectionException if that check fails.
classLoader - Variable in class net.nicholaswilliams.java.licensing.FileLicenseProvider
 
clear() - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableAbstractCollection
 
clearLicenseCache() - Method in class net.nicholaswilliams.java.licensing.LicenseManager
Clears the cache of licenses, forcing all license data to be re-retrieved from the license data provider on the next call to LicenseManager.getLicense(Object).
clone() - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableArrayList
 
clone() - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableLinkedHashSet
 
clone() - Method in class net.nicholaswilliams.java.licensing.License
Performs a deep clone of this license and its content and features.
clone() - Method in class net.nicholaswilliams.java.licensing.License.Feature
Returns a clone of this feature.
contains(Object) - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableAbstractCollection
 
containsAll(Collection<?>) - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableAbstractCollection
 
CorruptSignatureException - Exception in net.nicholaswilliams.java.licensing.exception
This is thrown when a corrupt signature ar non-signature is provided.
CorruptSignatureException() - Constructor for exception net.nicholaswilliams.java.licensing.exception.CorruptSignatureException
 
CorruptSignatureException(String) - Constructor for exception net.nicholaswilliams.java.licensing.exception.CorruptSignatureException
 
CorruptSignatureException(Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.CorruptSignatureException
 
CorruptSignatureException(String, Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.CorruptSignatureException
 

D

DataSignatureManager - Class in net.nicholaswilliams.java.licensing
This class manages the signatures for objects.
DataSignatureManager() - Constructor for class net.nicholaswilliams.java.licensing.DataSignatureManager
 
decrypt(String) - Static method in class net.nicholaswilliams.java.licensing.encryption.Encryptor
Decrypt an encrypted string using the default passphrase.
decrypt(String, char[]) - Static method in class net.nicholaswilliams.java.licensing.encryption.Encryptor
Decrypt an encrypted string.
decrypt(byte[]) - Static method in class net.nicholaswilliams.java.licensing.encryption.Encryptor
Decrypt encrypted data using the default passphrase.
decrypt(byte[], char[]) - Static method in class net.nicholaswilliams.java.licensing.encryption.Encryptor
Decrypt an encrypted data.
decryptAndVerifyLicense(SignedLicense) - Method in class net.nicholaswilliams.java.licensing.LicenseManager
This method verifies the signed license object's signature, then decrypts the signed license and returns the decrypted license.
decryptRaw(byte[]) - Static method in class net.nicholaswilliams.java.licensing.encryption.Encryptor
Decrypt encrypted data using the default passphrase.
decryptRaw(byte[], char[]) - Static method in class net.nicholaswilliams.java.licensing.encryption.Encryptor
Decrypt encrypted data.
DefaultLicenseValidator - Class in net.nicholaswilliams.java.licensing
A default implementation of LicenseValidator, which simply checks that the license is active and not expired.
DefaultLicenseValidator() - Constructor for class net.nicholaswilliams.java.licensing.DefaultLicenseValidator
 
deserialize(byte[]) - Static method in class net.nicholaswilliams.java.licensing.License
Deserializes a serialized license into an actual License object.
deserializeLicense(byte[]) - Method in class net.nicholaswilliams.java.licensing.DeserializingLicenseProvider
 
DeserializingLicenseProvider - Class in net.nicholaswilliams.java.licensing
An abstract implementation of the LicenseProvider interface that assumes the license will be stored in serialized form.
DeserializingLicenseProvider() - Constructor for class net.nicholaswilliams.java.licensing.DeserializingLicenseProvider
 

E

encrypt(String) - Static method in class net.nicholaswilliams.java.licensing.encryption.Encryptor
Encrypt the plain-text string using the default passphrase.
encrypt(String, char[]) - Static method in class net.nicholaswilliams.java.licensing.encryption.Encryptor
Encrypt the plain-text string.
encrypt(byte[]) - Static method in class net.nicholaswilliams.java.licensing.encryption.Encryptor
Encrypt the binary data using the default passphrase.
encrypt(byte[], char[]) - Static method in class net.nicholaswilliams.java.licensing.encryption.Encryptor
Encrypt the binary data.
Encryptor - Class in net.nicholaswilliams.java.licensing.encryption
A class for easy, strong, two-way encryption/decryption of strings.
encryptRaw(byte[]) - Static method in class net.nicholaswilliams.java.licensing.encryption.Encryptor
Encrypt the binary data using the default passphrase.
encryptRaw(byte[], char[]) - Static method in class net.nicholaswilliams.java.licensing.encryption.Encryptor
Encrypt the binary data.
equals(Object) - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableAbstractCollection
 
equals(Object) - Method in class net.nicholaswilliams.java.licensing.License
Checks whether the provided license object is identical to this one in content, features and expiration dates, deeply.
equals(Object) - Method in class net.nicholaswilliams.java.licensing.License.Feature
Indicates whether these features are the same feature.
erase() - Method in class net.nicholaswilliams.java.licensing.SignedLicense
Erase the contents of this object.
ExpiredLicenseException - Exception in net.nicholaswilliams.java.licensing.exception
This exception is thrown whenever a license is validated that has expired.
ExpiredLicenseException() - Constructor for exception net.nicholaswilliams.java.licensing.exception.ExpiredLicenseException
 
ExpiredLicenseException(String) - Constructor for exception net.nicholaswilliams.java.licensing.exception.ExpiredLicenseException
 
ExpiredLicenseException(Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.ExpiredLicenseException
 
ExpiredLicenseException(String, Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.ExpiredLicenseException
 

F

FailedToDecryptException - Exception in net.nicholaswilliams.java.licensing.exception
This exception is thrown when the data was corrupt and undecryptable or when the provided decryption password was incorrect.
FailedToDecryptException() - Constructor for exception net.nicholaswilliams.java.licensing.exception.FailedToDecryptException
 
FailedToDecryptException(String) - Constructor for exception net.nicholaswilliams.java.licensing.exception.FailedToDecryptException
 
FailedToDecryptException(Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.FailedToDecryptException
 
FailedToDecryptException(String, Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.FailedToDecryptException
 
FeatureObject - Interface in net.nicholaswilliams.java.licensing
An interface that other objects can implement to indicate that they represent features.
FeatureRestriction - Annotation Type in net.nicholaswilliams.java.licensing
An annotation for indicating license-restricted methods, packages and types.
FeatureRestrictionOperand - Enum in net.nicholaswilliams.java.licensing
Indicates whether feature restrictions are "all-or-nothing" (FeatureRestrictionOperand.AND) or "any" (FeatureRestrictionOperand.OR).
FileLicenseProvider - Class in net.nicholaswilliams.java.licensing
A default implementation of the LicenseProvider that assumes the binary data from the signed and serialized license is stored in a file.
FileLicenseProvider() - Constructor for class net.nicholaswilliams.java.licensing.FileLicenseProvider
Constructs a file-based license provider with the same class loader as the loader of this class and fileOnClasspath set to false.
FileLicenseProvider(ClassLoader) - Constructor for class net.nicholaswilliams.java.licensing.FileLicenseProvider
Constructs a file-based license provider with the provided class loader and fileOnClasspath set to true.
FilePublicKeyDataProvider - Class in net.nicholaswilliams.java.licensing.encryption
A default implementation of PublicKeyDataProvider that reads the public key from a file.
FilePublicKeyDataProvider(File) - Constructor for class net.nicholaswilliams.java.licensing.encryption.FilePublicKeyDataProvider
Create a new provider, specifying the file from which the public key can be read.
FilePublicKeyDataProvider(String) - Constructor for class net.nicholaswilliams.java.licensing.encryption.FilePublicKeyDataProvider
Create a new provider, specifying the name of the file from which the public key can be read.

G

get(int) - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableArrayList
 
get(int) - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableLinkedHashSet
Retrieves the indexed element specified.
get(E) - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableLinkedHashSet
Retrieves the matching element specified.
getEncryptedPublicKeyData() - Method in class net.nicholaswilliams.java.licensing.encryption.FilePublicKeyDataProvider
This method returns the data from the file containing the encrypted public key from the public/private key pair.
getEncryptedPublicKeyData() - Method in interface net.nicholaswilliams.java.licensing.encryption.PublicKeyDataProvider
This method returns the data from the file containing the encrypted public key from the public/private key pair.
getFeatures() - Method in class net.nicholaswilliams.java.licensing.License
Returns an immutable (unchangeable) list of all of the features contained within this license.
getFilePrefix() - Method in class net.nicholaswilliams.java.licensing.FileLicenseProvider
Gets the prefix that will be prepended to the file name before looking for it.
getFileSuffix() - Method in class net.nicholaswilliams.java.licensing.FileLicenseProvider
Gets the file suffix that will be appended to the file name before looking for it.
getFormattedDate(long) - Method in class net.nicholaswilliams.java.licensing.DefaultLicenseValidator
 
getGoodAfterDate() - Method in class net.nicholaswilliams.java.licensing.License
Returns the millisecond timestamp for the date after which this license is valid (usually equal or close to the issue date, but this is not required.)
getGoodBeforeDate() - Method in class net.nicholaswilliams.java.licensing.License.Feature
Returns the feature expiration date.
getGoodBeforeDate() - Method in class net.nicholaswilliams.java.licensing.License
Returns the millisecond timestamp for the date before which this license is valid (i.e., the expiration date).
getHolder() - Method in class net.nicholaswilliams.java.licensing.License
Returns the holder of this license.
getInstance() - Static method in class net.nicholaswilliams.java.licensing.LicenseManager
Returns the license manager instance.
getIssueDate() - Method in class net.nicholaswilliams.java.licensing.License
Returns the millisecond timestamp for the issue date of this license.
getIssuer() - Method in class net.nicholaswilliams.java.licensing.License
Returns the issuer of this license.
getLicense(Object) - Method in class net.nicholaswilliams.java.licensing.DeserializingLicenseProvider
Gets the stored, still-encrypted license content and signature from the persistence store.
getLicense(Object) - Method in class net.nicholaswilliams.java.licensing.LicenseManager
If the license has already been cached for the specified context (account, client, etc.) and the cache has not become stale (its age has not surpassed the cache time limitation configured for this manager), this returns the cached license.
getLicense(Object) - Method in interface net.nicholaswilliams.java.licensing.LicenseProvider
Gets the stored, still-encrypted license content and signature from the persistence store.
getLicenseContent() - Method in class net.nicholaswilliams.java.licensing.SignedLicense
Get the content of the actual license object.
getLicenseData(Object) - Method in class net.nicholaswilliams.java.licensing.DeserializingLicenseProvider
Gets the stored, still-encrypted, still-serialized license content and signature from the persistence store.
getLicenseData(Object) - Method in class net.nicholaswilliams.java.licensing.FileLicenseProvider
Gets the stored, still-encrypted, still-serialized license content and signature from the persistence store.
getLicenseDescription(License) - Method in class net.nicholaswilliams.java.licensing.DefaultLicenseValidator
 
getLicenseFile(Object) - Method in class net.nicholaswilliams.java.licensing.FileLicenseProvider
Gets the license file handle.
getName() - Method in interface net.nicholaswilliams.java.licensing.FeatureObject
 
getName() - Method in class net.nicholaswilliams.java.licensing.License.Feature
Returns the feature name or subject.
getNumberOfLicenses() - Method in class net.nicholaswilliams.java.licensing.License
Returns the number of licenses/seats/users that this license is valid for.
getPassword() - Method in interface net.nicholaswilliams.java.licensing.encryption.PasswordProvider
When integrating the license manager in your application, you must implement this interface.
getProductKey() - Method in class net.nicholaswilliams.java.licensing.License
Returns the product key for this license.
getPublicKeyFile() - Method in class net.nicholaswilliams.java.licensing.encryption.FilePublicKeyDataProvider
Gets the file that the public key is located at.
getSignatureContent() - Method in class net.nicholaswilliams.java.licensing.SignedLicense
Get the signature for the license content.
getSubject() - Method in class net.nicholaswilliams.java.licensing.License
Returns the subject for this license.

H

hash(String) - Static method in class net.nicholaswilliams.java.licensing.encryption.Hasher
Calculate the SHA-512 message digest hash of the provided string and return it with its binary data Base64 encoded.
hashCode() - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableAbstractCollection
 
hashCode() - Method in class net.nicholaswilliams.java.licensing.License.Feature
Generates a hash code for this feature.
hashCode() - Method in class net.nicholaswilliams.java.licensing.License
Calculates a hash code for this license.
Hasher - Class in net.nicholaswilliams.java.licensing.encryption
Used for creating hash keys of things that won't need to be unencrypted.
hasLicenseForAllFeatures(String...) - Method in class net.nicholaswilliams.java.licensing.License
Checks if all of the features specified are licensed in this license.
hasLicenseForAllFeatures(long, String...) - Method in class net.nicholaswilliams.java.licensing.License
Checks if all of the features specified are licensed in this license.
hasLicenseForAllFeatures(FeatureObject...) - Method in class net.nicholaswilliams.java.licensing.License
Checks if all of the features specified are licensed in this license.
hasLicenseForAllFeatures(long, FeatureObject...) - Method in class net.nicholaswilliams.java.licensing.License
Checks if all of the features specified are licensed in this license.
hasLicenseForAllFeatures(Object, String...) - Method in class net.nicholaswilliams.java.licensing.LicenseManager
Checks whether the license assigned to the specified context is licensed to use all of the features specified.
hasLicenseForAllFeatures(Object, FeatureObject...) - Method in class net.nicholaswilliams.java.licensing.LicenseManager
Checks whether the license assigned to the specified context is licensed to use all of the features specified.
hasLicenseForAnyFeature(String...) - Method in class net.nicholaswilliams.java.licensing.License
Checks if all of the features specified are licensed in this license.
hasLicenseForAnyFeature(long, String...) - Method in class net.nicholaswilliams.java.licensing.License
Checks if all of the features specified are licensed in this license.
hasLicenseForAnyFeature(FeatureObject...) - Method in class net.nicholaswilliams.java.licensing.License
Checks if all of the features specified are licensed in this license.
hasLicenseForAnyFeature(long, FeatureObject...) - Method in class net.nicholaswilliams.java.licensing.License
Checks if all of the features specified are licensed in this license.
hasLicenseForAnyFeature(Object, String...) - Method in class net.nicholaswilliams.java.licensing.LicenseManager
Checks whether the license assigned to the specified context is licensed to use any of the features specified.
hasLicenseForAnyFeature(Object, FeatureObject...) - Method in class net.nicholaswilliams.java.licensing.LicenseManager
Checks whether the license assigned to the specified context is licensed to use any of the features specified.
hasLicenseForFeature(String) - Method in class net.nicholaswilliams.java.licensing.License
Checks if the feature specified is licensed.
hasLicenseForFeature(long, String) - Method in class net.nicholaswilliams.java.licensing.License
Checks if the feature specified is licensed.
hasLicenseForFeature(FeatureObject) - Method in class net.nicholaswilliams.java.licensing.License
Checks if the feature specified is licensed.
hasLicenseForFeature(long, FeatureObject) - Method in class net.nicholaswilliams.java.licensing.License
Checks if the feature specified is licensed.
hasLicenseForFeature(Object, String) - Method in class net.nicholaswilliams.java.licensing.LicenseManager
Checks whether the license assigned to the specified context is licensed to use the feature specified.
hasLicenseForFeature(Object, FeatureObject) - Method in class net.nicholaswilliams.java.licensing.LicenseManager
Checks whether the license assigned to the specified context is licensed to use the feature specified.
hasLicenseForFeatures(Object, FeatureRestriction) - Method in class net.nicholaswilliams.java.licensing.LicenseManager
Checks whether the license assigned to the specified context is licensed to use the feature(s) in the annotation value.
hasLicenseForFeatures(Object, AnnotatedElement) - Method in class net.nicholaswilliams.java.licensing.LicenseManager
Checks whether the license assigned to the specified context is licensed to use the feature(s) in the FeatureRestriction annotation value, if the target is annotated with that annotation.
hasNext() - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableIterator
 
hasNext() - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableListIterator
 
hasPrevious() - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableListIterator
 

I

Immutable - Interface in net.nicholaswilliams.java.licensing.immutable
This interface denotes a collection or other object as being unmodifiable.
ImmutableAbstractCollection<E> - Class in net.nicholaswilliams.java.licensing.immutable
Wraps a collection such that it cannot be modified.
ImmutableAbstractCollection(Collection<E>) - Constructor for class net.nicholaswilliams.java.licensing.immutable.ImmutableAbstractCollection
Constructor that wraps (not copies).
ImmutableArrayList<E> - Class in net.nicholaswilliams.java.licensing.immutable
Wraps a list such that it cannot be modified.
ImmutableArrayList(List<E>) - Constructor for class net.nicholaswilliams.java.licensing.immutable.ImmutableArrayList
Constructor that copies.
ImmutableIterator<E> - Class in net.nicholaswilliams.java.licensing.immutable
Wraps an iterator such that it cannot be modified.
ImmutableLinkedHashSet<E> - Class in net.nicholaswilliams.java.licensing.immutable
Wraps a set such that it cannot be modified.
ImmutableLinkedHashSet(Set<E>) - Constructor for class net.nicholaswilliams.java.licensing.immutable.ImmutableLinkedHashSet
Constructor that copies.
ImmutableListIterator<E> - Class in net.nicholaswilliams.java.licensing.immutable
Wraps a list iterator such that it cannot be modified.
ImmutableModifiedThroughReflectionException - Error in net.nicholaswilliams.java.licensing.immutable
This exception is thrown when an unmodifiable list is modified illegally through exception.
ImmutableModifiedThroughReflectionException() - Constructor for error net.nicholaswilliams.java.licensing.immutable.ImmutableModifiedThroughReflectionException
 
ImmutableModifiedThroughReflectionException(String) - Constructor for error net.nicholaswilliams.java.licensing.immutable.ImmutableModifiedThroughReflectionException
 
ImmutableModifiedThroughReflectionException(Throwable) - Constructor for error net.nicholaswilliams.java.licensing.immutable.ImmutableModifiedThroughReflectionException
 
ImmutableModifiedThroughReflectionException(String, Throwable) - Constructor for error net.nicholaswilliams.java.licensing.immutable.ImmutableModifiedThroughReflectionException
 
InappropriateKeyException - Exception in net.nicholaswilliams.java.licensing.exception
This exception is thrown when the specified key is inappropriate for the given cipher.
InappropriateKeyException() - Constructor for exception net.nicholaswilliams.java.licensing.exception.InappropriateKeyException
 
InappropriateKeyException(String) - Constructor for exception net.nicholaswilliams.java.licensing.exception.InappropriateKeyException
 
InappropriateKeyException(Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.InappropriateKeyException
 
InappropriateKeyException(String, Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.InappropriateKeyException
 
InappropriateKeySpecificationException - Exception in net.nicholaswilliams.java.licensing.exception
This exception is thrown when an inappropriate key specification is provided for the key factory.
InappropriateKeySpecificationException() - Constructor for exception net.nicholaswilliams.java.licensing.exception.InappropriateKeySpecificationException
 
InappropriateKeySpecificationException(String) - Constructor for exception net.nicholaswilliams.java.licensing.exception.InappropriateKeySpecificationException
 
InappropriateKeySpecificationException(Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.InappropriateKeySpecificationException
 
InappropriateKeySpecificationException(String, Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.InappropriateKeySpecificationException
 
indexOf(Object) - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableArrayList
 
InsecureEnvironmentException - Error in net.nicholaswilliams.java.licensing.exception
Thrown when a security manager is already installed that allows reflection access but doesn't allow a more secure security manager to be installed.
InsecureEnvironmentException(String, Throwable) - Constructor for error net.nicholaswilliams.java.licensing.exception.InsecureEnvironmentException
 
InsecureEnvironmentException(SecurityException) - Constructor for error net.nicholaswilliams.java.licensing.exception.InsecureEnvironmentException
 
InvalidLicenseException - Exception in net.nicholaswilliams.java.licensing.exception
This exception is thrown whenever a license is validated that isn't valid for some reason.
InvalidLicenseException() - Constructor for exception net.nicholaswilliams.java.licensing.exception.InvalidLicenseException
 
InvalidLicenseException(String) - Constructor for exception net.nicholaswilliams.java.licensing.exception.InvalidLicenseException
 
InvalidLicenseException(Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.InvalidLicenseException
 
InvalidLicenseException(String, Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.InvalidLicenseException
 
InvalidSignatureException - Exception in net.nicholaswilliams.java.licensing.exception
This is thrown when a signature is invalid and cannot be verified.
InvalidSignatureException() - Constructor for exception net.nicholaswilliams.java.licensing.exception.InvalidSignatureException
 
InvalidSignatureException(String) - Constructor for exception net.nicholaswilliams.java.licensing.exception.InvalidSignatureException
 
InvalidSignatureException(Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.InvalidSignatureException
 
InvalidSignatureException(String, Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.InvalidSignatureException
 
isBase64Encoded() - Method in class net.nicholaswilliams.java.licensing.FileLicenseProvider
Indicates whether the file is Base64 encoded.
isEmpty() - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableAbstractCollection
 
isFileOnClasspath() - Method in class net.nicholaswilliams.java.licensing.FileLicenseProvider
Indicates whether the file should be found on the file system or on the classpath via a class loader.
iterator() - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableAbstractCollection
 

K

keyAlgorithm - Static variable in class net.nicholaswilliams.java.licensing.encryption.KeyFileUtilities
 
KeyFileUtilities - Class in net.nicholaswilliams.java.licensing.encryption
A class of utility methods for reading and writing private and public keys to files.
KeyNotFoundException - Exception in net.nicholaswilliams.java.licensing.exception
This is thrown when the key (file) could not be found.
KeyNotFoundException() - Constructor for exception net.nicholaswilliams.java.licensing.exception.KeyNotFoundException
 
KeyNotFoundException(String) - Constructor for exception net.nicholaswilliams.java.licensing.exception.KeyNotFoundException
 
KeyNotFoundException(Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.KeyNotFoundException
 
KeyNotFoundException(String, Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.KeyNotFoundException
 

L

lastIndexOf(Object) - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableArrayList
 
License - Class in net.nicholaswilliams.java.licensing
This is the license object, which is serialized and signed to a file for use by the application later.
License.Builder - Class in net.nicholaswilliams.java.licensing
This class is responsible for all license creation.
License.Builder() - Constructor for class net.nicholaswilliams.java.licensing.License.Builder
 
License.Feature - Class in net.nicholaswilliams.java.licensing
A class that represents a licensed feature.
LicenseManager - Class in net.nicholaswilliams.java.licensing
This class manages licenses in the client application.
LicenseManagerProperties - Class in net.nicholaswilliams.java.licensing
This class is used to set properties that will be used to instantiate the LicenseManager.
LicenseProvider - Interface in net.nicholaswilliams.java.licensing
This specifies an interface for providing and persisting the stored, still-encrypted license content and signature object.
LicenseValidator - Interface in net.nicholaswilliams.java.licensing
Specifies an interface for validating licenses.
LicensingCharsets - Class in net.nicholaswilliams.java.licensing
Defines the default character set used in license serialization and deserialization.
listIterator() - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableArrayList
 
listIterator(int) - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableArrayList
 

N

net.nicholaswilliams.java.licensing - package net.nicholaswilliams.java.licensing
 
net.nicholaswilliams.java.licensing.encryption - package net.nicholaswilliams.java.licensing.encryption
 
net.nicholaswilliams.java.licensing.exception - package net.nicholaswilliams.java.licensing.exception
 
net.nicholaswilliams.java.licensing.immutable - package net.nicholaswilliams.java.licensing.immutable
 
next() - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableIterator
 
next() - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableListIterator
 
nextIndex() - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableListIterator
 

O

ObjectDeserializationException - Exception in net.nicholaswilliams.java.licensing.exception
This class is thrown when an error occurs while reading an object from a byte array.
ObjectDeserializationException() - Constructor for exception net.nicholaswilliams.java.licensing.exception.ObjectDeserializationException
 
ObjectDeserializationException(String) - Constructor for exception net.nicholaswilliams.java.licensing.exception.ObjectDeserializationException
 
ObjectDeserializationException(Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.ObjectDeserializationException
 
ObjectDeserializationException(String, Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.ObjectDeserializationException
 
ObjectSerializationException - Exception in net.nicholaswilliams.java.licensing.exception
This class is thrown when an I/O error occurs while writing an object to a byte array.
ObjectSerializationException() - Constructor for exception net.nicholaswilliams.java.licensing.exception.ObjectSerializationException
 
ObjectSerializationException(String) - Constructor for exception net.nicholaswilliams.java.licensing.exception.ObjectSerializationException
 
ObjectSerializationException(Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.ObjectSerializationException
 
ObjectSerializationException(String, Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.ObjectSerializationException
 
ObjectSerializer - Class in net.nicholaswilliams.java.licensing
This is a helper class for writing any object and reading simple objects (no arrays, collections, or generic top-level objects) to and from byte arrays.
ObjectSerializer() - Constructor for class net.nicholaswilliams.java.licensing.ObjectSerializer
 
ObjectTypeNotExpectedException - Exception in net.nicholaswilliams.java.licensing.exception
This class class is thrown when an object is deserialized that does not match the type that was expected.
ObjectTypeNotExpectedException() - Constructor for exception net.nicholaswilliams.java.licensing.exception.ObjectTypeNotExpectedException
 
ObjectTypeNotExpectedException(String) - Constructor for exception net.nicholaswilliams.java.licensing.exception.ObjectTypeNotExpectedException
 
ObjectTypeNotExpectedException(String, String) - Constructor for exception net.nicholaswilliams.java.licensing.exception.ObjectTypeNotExpectedException
 
ObjectTypeNotExpectedException(Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.ObjectTypeNotExpectedException
 
ObjectTypeNotExpectedException(String, Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.ObjectTypeNotExpectedException
 
ObjectTypeNotExpectedException(String, String, Throwable) - Constructor for exception net.nicholaswilliams.java.licensing.exception.ObjectTypeNotExpectedException
 

P

PasswordProvider - Interface in net.nicholaswilliams.java.licensing.encryption
This specifies an interface for providing a password for decrypting a key or license.
previous() - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableListIterator
 
previousIndex() - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableListIterator
 
PublicKeyDataProvider - Interface in net.nicholaswilliams.java.licensing.encryption
Specifies an interface for retrieving the public key file data.

R

readEncryptedPrivateKey(File, char[]) - Static method in class net.nicholaswilliams.java.licensing.encryption.KeyFileUtilities
 
readEncryptedPrivateKey(byte[], char[]) - Static method in class net.nicholaswilliams.java.licensing.encryption.KeyFileUtilities
 
readEncryptedPublicKey(File, char[]) - Static method in class net.nicholaswilliams.java.licensing.encryption.KeyFileUtilities
 
readEncryptedPublicKey(byte[], char[]) - Static method in class net.nicholaswilliams.java.licensing.encryption.KeyFileUtilities
 
readObject(Class<T>, byte[]) - Method in class net.nicholaswilliams.java.licensing.ObjectSerializer
Deserializes an object of the specified type from the provided byte stream.
remove(Object) - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableAbstractCollection
 
remove(int) - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableArrayList
 
remove() - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableIterator
 
remove() - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableListIterator
 
removeAll(Collection<?>) - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableAbstractCollection
 
retainAll(Collection<?>) - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableAbstractCollection
 

S

serialize() - Method in class net.nicholaswilliams.java.licensing.License
Serialized this license into a byte array that can be shipped electronically.
set(int, E) - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableArrayList
 
set(E) - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableListIterator
 
setBase64Encoded(boolean) - Method in class net.nicholaswilliams.java.licensing.FileLicenseProvider
Sets whether the file is Base64 encoded.
setCacheTimeInMinutes(int) - Static method in class net.nicholaswilliams.java.licensing.LicenseManagerProperties
Sets the length of time in minutes to cache license information (for performance reasons, anything less than 1 minute results in a 10-second cache life; the cache cannot be disabled completely).
setFileOnClasspath(boolean) - Method in class net.nicholaswilliams.java.licensing.FileLicenseProvider
Sets whether the file should be found on the file system or on the classpath via a class loader.
setFilePrefix(String) - Method in class net.nicholaswilliams.java.licensing.FileLicenseProvider
Sets the prefix that will be prepended to the file name before looking for it.
setFileSuffix(String) - Method in class net.nicholaswilliams.java.licensing.FileLicenseProvider
Sets the file suffix that will be appended to the file name before looking for it.
setLicensePasswordProvider(PasswordProvider) - Static method in class net.nicholaswilliams.java.licensing.LicenseManagerProperties
Sets the provider of the password for the persisted license data.
setLicenseProvider(LicenseProvider) - Static method in class net.nicholaswilliams.java.licensing.LicenseManagerProperties
Sets the provider of the persisted license data.
setLicenseValidator(LicenseValidator) - Static method in class net.nicholaswilliams.java.licensing.LicenseManagerProperties
Sets the validator implementation that validates all licenses; if null, licenses are assumed to always be valid.
setPublicKeyDataProvider(PublicKeyDataProvider) - Static method in class net.nicholaswilliams.java.licensing.LicenseManagerProperties
Sets the provider of the data for the public key companion to the private key used to sign the license object.
setPublicKeyPasswordProvider(PasswordProvider) - Static method in class net.nicholaswilliams.java.licensing.LicenseManagerProperties
Sets the provider of the password for decrypting the public key.
signData(PrivateKey, byte[]) - Method in class net.nicholaswilliams.java.licensing.DataSignatureManager
 
SignedLicense - Class in net.nicholaswilliams.java.licensing
This class contains the encrypted license content and the signature for the encrypted license content.
SignedLicense(byte[], byte[]) - Constructor for class net.nicholaswilliams.java.licensing.SignedLicense
 
size() - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableAbstractCollection
 
subList(int, int) - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableArrayList
 

T

toArray() - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableAbstractCollection
 
toArray(T[]) - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableAbstractCollection
 
toString() - Method in class net.nicholaswilliams.java.licensing.immutable.ImmutableAbstractCollection
 
toString() - Method in class net.nicholaswilliams.java.licensing.License.Feature
Generates a string representation of this feature (name and expiration date separated by 0x1F.
toString() - Method in class net.nicholaswilliams.java.licensing.License
Generates a string representation of this license.

U

UTF_8 - Static variable in class net.nicholaswilliams.java.licensing.LicensingCharsets
All operations in License Manager use the universal UTF-8 character set.

V

validateLicense(License) - Method in class net.nicholaswilliams.java.licensing.DefaultLicenseValidator
Ensures the current date is between the license's good-after and good-before dates (the license has taken effect and hasn't expired).
validateLicense(License) - Method in class net.nicholaswilliams.java.licensing.LicenseManager
This method calls LicenseValidator.validateLicense(License) on the validator that was provided, if one was provided.
validateLicense(License) - Method in interface net.nicholaswilliams.java.licensing.LicenseValidator
Validates the license provided and throws an exception if the license is invalid for any reason (expired, not who it belongs to, etc.).
valueOf(String) - Static method in enum net.nicholaswilliams.java.licensing.FeatureRestrictionOperand
Returns the enum constant of this type with the specified name.
values() - Static method in enum net.nicholaswilliams.java.licensing.FeatureRestrictionOperand
Returns an array containing the constants of this enum type, in the order they are declared.
verifyLicenseSignature(SignedLicense) - Method in class net.nicholaswilliams.java.licensing.LicenseManager
This method verifies the signed license object's signature.
verifySignature(PublicKey, byte[], byte[]) - Method in class net.nicholaswilliams.java.licensing.DataSignatureManager
 

W

withFeature(String) - Method in class net.nicholaswilliams.java.licensing.License.Builder
Deprecated.
withFeature(String, long) - Method in class net.nicholaswilliams.java.licensing.License.Builder
Deprecated.
withFeature(License.Feature) - Method in class net.nicholaswilliams.java.licensing.License.Builder
Deprecated.
withGoodAfterDate(long) - Method in class net.nicholaswilliams.java.licensing.License.Builder
Sets the valid date (millisecond timestamp) for this license (usually the equal or close to the issue date, but that is not required.)
withGoodBeforeDate(long) - Method in class net.nicholaswilliams.java.licensing.License.Builder
Sets the expiration date (millisecond timestamp) for this license.
withHolder(String) - Method in class net.nicholaswilliams.java.licensing.License.Builder
Sets the holder for this license.
withIssueDate(long) - Method in class net.nicholaswilliams.java.licensing.License.Builder
Sets the issue date (millisecond timestamp) for this license.
withIssuer(String) - Method in class net.nicholaswilliams.java.licensing.License.Builder
Sets the issuer for this license.
withNumberOfLicenses(int) - Method in class net.nicholaswilliams.java.licensing.License.Builder
Sets the number of licenses/seats/users this license is good for.
withProductKey(String) - Method in class net.nicholaswilliams.java.licensing.License.Builder
Sets the product key for this license.
withSubject(String) - Method in class net.nicholaswilliams.java.licensing.License.Builder
Sets the subject for this license.
writeEncryptedPrivateKey(PrivateKey, File, char[]) - Static method in class net.nicholaswilliams.java.licensing.encryption.KeyFileUtilities
 
writeEncryptedPrivateKey(PrivateKey, char[]) - Static method in class net.nicholaswilliams.java.licensing.encryption.KeyFileUtilities
 
writeEncryptedPublicKey(PublicKey, File, char[]) - Static method in class net.nicholaswilliams.java.licensing.encryption.KeyFileUtilities
 
writeEncryptedPublicKey(PublicKey, char[]) - Static method in class net.nicholaswilliams.java.licensing.encryption.KeyFileUtilities
 
writeObject(Serializable) - Method in class net.nicholaswilliams.java.licensing.ObjectSerializer
Serializes the Serializable object passed and returns it as a byte array.
A B C D E F G H I K L N O P R S T U V W 

Copyright © 2010-2013 NWTS Java Code. All Rights Reserved. Licensed Under the Apache License version 2.0.