com.aliyun.svideosdk.license

## Class LicenseManager

- java.lang.Object
- - com.aliyun.svideosdk.license.LicenseManager

-     public class LicenseManager
      extends java.lang.Object

  sdk License 管理类，可以通过该管理类的日志获取 license 初始化结果.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static interface` | `LicenseManager.Feature` Supported value-added services

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `LicenseManager()`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `getCertExpireTime()`
    `long` | `getCertSignTime()`
    `int` | `getErrorCode()`
    `java.lang.String` | `getErrorMessage()`
    `long` | `getExpireTime()`
    `static LicenseManager` | `getInstance()`
    `java.lang.String` | `getLicenseFeatures()`
    `void` | `onError(int errorCode, java.lang.String errorMsg)` license 初始化失败
    `void` | `onSuccess(java.lang.String features, long certSignTime, long certExpireTime, long expireTime)` license 初始化成功
    `void` | `removeCallback()`
    `LicenseManager` | `setCallback(ILicenseNativeInitCallback callback)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### LicenseManager

          public LicenseManager()

  - ### Method Detail

    - #### getInstance

          public static LicenseManager getInstance()

    - #### onError

          public void onError(int errorCode,
                              java.lang.String errorMsg)

      license 初始化失败
      Parameters:
        `errorCode` - license 初始化错误码
        `errorMsg` - license 初始化错误信息

    - #### onSuccess

          public void onSuccess(java.lang.String features,
                                long certSignTime,
                                long certExpireTime,
                                long expireTime)

      license 初始化成功
      Parameters:
        `features` - license 支持的增持服务 `LicenseManager.Feature`
        `certSignTime` - 证书签发时间，Unix时间戳，毫秒
        `certExpireTime` - 证书有效期 Unix时间戳，毫秒
        `expireTime` - 短视频sdk对应的业务有效期 ，Unix时间戳，毫秒

    - #### getErrorCode

          public int getErrorCode()

      Returns:
        license 初始化错误码

    - #### getErrorMessage

          public java.lang.String getErrorMessage()

      Returns:
        license 初始化错误信息

    - #### getLicenseFeatures

          public java.lang.String getLicenseFeatures()

      Returns:
        license 支持的增持服务 `LicenseManager.Feature`

    - #### getCertSignTime

          public long getCertSignTime()

      Returns:
        证书签发时间，Unix时间戳，毫秒

    - #### getCertExpireTime

          public long getCertExpireTime()

      Returns:
        证书有效期 Unix时间戳，毫秒

    - #### getExpireTime

          public long getExpireTime()

      Returns:
        短视频业务有效期 ，Unix时间戳，毫秒

    - #### setCallback

          public LicenseManager setCallback(ILicenseNativeInitCallback callback)

    - #### removeCallback

          public void removeCallback()