File tree 2 files changed +1
-4
lines changed
frontend/server/src/main/java/org/pytorch/serve/util
2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Configuration
4
4
1 . Enable token authorization by adding the provided plugin at start using the ` --plugin-path ` command.
5
- 2 . Torchserve will enable token authorization if the plugin is provided. In the current working directory a file ` key_file.txt ` will be generated.
5
+ 2 . Torchserve will enable token authorization if the plugin is provided. In the current working directory a file ` key_file.json ` will be generated.
6
6
1 . Example key file:
7
7
8
8
` Management Key: aadJv_R6 --- Expiration time: 2024-01-16T22:23:32.952499Z `
Original file line number Diff line number Diff line change 21
21
import java .security .KeyFactory ;
22
22
import java .security .KeyStore ;
23
23
import java .security .PrivateKey ;
24
- import java .security .SecureRandom ;
25
24
import java .security .cert .Certificate ;
26
25
import java .security .cert .CertificateFactory ;
27
26
import java .security .cert .X509Certificate ;
@@ -149,8 +148,6 @@ public final class ConfigManager {
149
148
private boolean telemetryEnabled ;
150
149
private Logger logger = LoggerFactory .getLogger (ConfigManager .class );
151
150
152
- private SecureRandom secureRandom = new SecureRandom ();
153
- private Base64 .Encoder baseEncoder = Base64 .getUrlEncoder ();
154
151
private boolean tokenAuthorizationEnabled ;
155
152
private Class <?> tokenClass ;
156
153
private Object tokenObject ;
You can’t perform that action at this time.
0 commit comments