com.aspose.email

com.aspose.email

Class License

public class License
extends Object

Provides methods to license the component.

Constructor Summary
License()
Initializes a new instance of this class.
 
Method Summary
void
setLicense(InputStream stream)
Licenses the component.
void
setLicense(String licenseName)
Licenses the component.
 
Methods inherited from class java.lang.Object
 

    • Constructor Detail

      • License

        public License()
        Initializes a new instance of this class.

    • Method Detail

      • setLicense

        public void setLicense(String licenseName)
                        throws Exception
        Licenses the component.

        Parameters:
        licenseName - Can be a full or short file name Use an empty string to switch to evaluation mode.
        Throws:
        Exception
      • setLicense

        public void setLicense(InputStream stream)
                        throws Exception
        Licenses the component.

        Parameters:
        stream - A stream that contains the license.
        Throws:
        Exception