DrmCheckCallback.java 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *http://www.apache.org/licenses/LICENSE-2.0
  7. * Unless required by applicable law or agreed to in writing, software
  8. * distributed under the License is distributed on an "AS IS" BASIS,
  9. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. * See the License for the specific language governing permissions and
  11. * limitations under the License.
  12. */
  13. package com.DrmSDK;
  14. /**
  15. * DRM鉴权结果回调
  16. * Callback of the DRM authentication result
  17. *
  18. * @since 2020/07/01
  19. */
  20. public interface DrmCheckCallback {
  21. /**
  22. * Check successfully in the SDK,the developer can uses the callback parameters signData and signature
  23. * to carry out their own business processing, such as visiting their own business server for signature verification.
  24. *
  25. * @param signData signed data for verification
  26. * @param signature server signature
  27. */
  28. void onCheckSuccess(String signData, String signature);
  29. /**
  30. * Check failed and user is not licensed to use this application.
  31. *
  32. * @param errorCode Error Code
  33. */
  34. public void onCheckFailed(int errorCode);
  35. }