Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
member-api
Commits
44f264dc
Commit
44f264dc
authored
Feb 14, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
44ff3a6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
AliyunSign.java
src/main/java/com/egolm/film/util/AliyunSign.java
+18
-7
No files found.
src/main/java/com/egolm/film/util/AliyunSign.java
View file @
44f264dc
package
com
.
egolm
.
film
.
util
;
import
sun.misc.BASE64Encoder
;
import
javax.crypto.Mac
;
import
javax.crypto.spec.SecretKeySpec
;
import
com.egolm.common.HttpUtil
;
import
java.io.IOException
;
import
java.io.UnsupportedEncodingException
;
import
java.net.URL
;
import
java.net.URLEncoder
;
import
java.security.SignatureException
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.Comparator
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Scanner
;
import
java.util.SimpleTimeZone
;
import
java.util.UUID
;
import
java.util.logging.Level
;
import
java.util.logging.Logger
;
import
javax.crypto.Mac
;
import
javax.crypto.spec.SecretKeySpec
;
import
com.egolm.common.HttpUtil
;
import
sun.misc.BASE64Encoder
;
/**
* 视频点播OpenAPI调用示例
* 以GetVideoPlayAuth接口为例,其他接口请替换相应接口名称及私有参数
*/
@SuppressWarnings
(
"restriction"
)
public
class
AliyunSign
{
//账号AK信息请填写(必选)
private
static
String
access_key_id
=
"LTAIOtHCCpDLXYp8"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment