You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// It doesn't matter turning on/off 'Escape token input' in the property manager
112
-
// but you should keep escapeEarly(false) as default
113
-
```
109
+
110
+
* ACL can use the wildcard(\*, ?) in the path.
111
+
* Don't use '!' in your path because it's ACL Delimiter.
112
+
* Use 'escape_early=False' as default setting but it doesn't matter turning on/off 'Escape token input' option in the Property Manager
114
113
115
114
116
115
## Usage
@@ -130,28 +129,38 @@ try {
130
129
| endTime | When does this token expire? 'endTime' overrides 'windowSeconds' |
131
130
| windowSeconds | How long is this token valid for? |
132
131
| fieldDelimiter | Character used to delimit token body fields. [ Default: ~ ]|
132
+
| aclDelimiter | Character used to delimit acl. [ Default: ! ]|
133
133
| escapeEarly | Causes strings to be 'url' encoded before being used. |
134
134
| verbose | Print all parameters. |
135
135
136
136
#### EdgeAuth Static Variable
137
137
```java
138
-
publicstaticfinalLongNOW=0L; // When using startTime
139
-
publicstaticStringACL_DELIMITER="!"; // When using ACL
138
+
publicstaticfinalLongNOW=0L; // When using startTime, 0L means "from NOW".
140
139
```
141
140
142
141
143
142
#### EdgeAuth's Method
144
143
| Method | Description |
145
144
|--------|-------------|
146
145
| generateURLToken(String url) | Single URL path. |
147
-
| generateACLToken(String acl) | Access control list delimited by ! [ ie. /\*]|
146
+
| generateACLToken(String acl) | Single URL path - can use the wildcard (*, ?) |
147
+
| generateACLToken(String[] acl) | Multi URL paths - can use the wildcard |
148
148
149
149
Returns the authorization token string.
150
150
151
151
152
-
## License
152
+
## Test
153
+
"src/test" directory is only for the internal test.
154
+
155
+
156
+
## Others
157
+
If you use the **Segmented Media Protection** behavior in AMD(Adaptive Media Delivery) Product, **tokenName(options.tokenName)** should be '**hdnts**'.
153
158
154
-
Copyright 2017 Akamai Technologies, Inc. All rights reserved.
0 commit comments