-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support ssl for flink connector (#36)
* rebase master * refactor ssl name * fix NebulaPool's not serializable * fix typo * support ssl for flink connector * add example for SSL use * fix test * fix var name
- Loading branch information
Showing
9 changed files
with
255 additions
and
43 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
connector/src/main/java/org.apache.flink/connector/nebula/connection/CASignParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* Copyright (c) 2021 vesoft inc. All rights reserved. | ||
* | ||
* This source code is licensed under Apache 2.0 License. | ||
*/ | ||
|
||
package org.apache.flink.connector.nebula.connection; | ||
|
||
import java.io.Serializable; | ||
|
||
public class CASignParams implements Serializable { | ||
|
||
private String caCrtFilePath; | ||
private String crtFilePath; | ||
private String keyFilePath; | ||
|
||
public CASignParams(String caCrtFilePath, String crtFilePath, String keyFilePath) { | ||
this.caCrtFilePath = caCrtFilePath; | ||
this.crtFilePath = crtFilePath; | ||
this.keyFilePath = keyFilePath; | ||
} | ||
|
||
public String getCaCrtFilePath() { | ||
return caCrtFilePath; | ||
} | ||
|
||
public void setCaCrtFilePath(String caCrtFilePath) { | ||
this.caCrtFilePath = caCrtFilePath; | ||
} | ||
|
||
public String getCrtFilePath() { | ||
return crtFilePath; | ||
} | ||
|
||
public void setCrtFilePath(String crtFilePath) { | ||
this.crtFilePath = crtFilePath; | ||
} | ||
|
||
public String getKeyFilePath() { | ||
return keyFilePath; | ||
} | ||
|
||
public void setKeyFilePath(String keyFilePath) { | ||
this.keyFilePath = keyFilePath; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "CASSLSignParams{" | ||
+ "caCrtFilePath='" + caCrtFilePath + '\'' | ||
+ ", crtFilePath='" + crtFilePath + '\'' | ||
+ ", keyFilePath='" + keyFilePath + '\'' | ||
+ '}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.