-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from yinjihuan/encrypt1.2.1
Encrypt1.2.1
- Loading branch information
Showing
8 changed files
with
91 additions
and
25 deletions.
There are no files selected for viewing
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
32 changes: 32 additions & 0 deletions
32
...encrypt-core/src/main/java/com/cxytiandi/encrypt/springboot/endpoint/EncryptEndpoint.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,32 @@ | ||
package com.cxytiandi.encrypt.springboot.endpoint; | ||
|
||
import com.cxytiandi.encrypt.core.EncryptionConfig; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.actuate.endpoint.annotation.Endpoint; | ||
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
/** | ||
* 加解密配置信息端点 | ||
* | ||
* @author yinjihuan http://cxytiandi.com/about | ||
*/ | ||
@Endpoint(id = "encrypt-config") | ||
public class EncryptEndpoint { | ||
|
||
@Autowired | ||
private EncryptionConfig encryptionConfig; | ||
|
||
@ReadOperation | ||
public Map<String, Object> encryptConfig() { | ||
Map<String, Object> data = new HashMap<>(); | ||
data.put("responseEncryptUriList", encryptionConfig.getResponseEncryptUriList()); | ||
data.put("responseEncryptUriIgnoreList", encryptionConfig.getResponseEncryptUriIgnoreList()); | ||
data.put("requestDecryptUriList", encryptionConfig.getRequestDecryptUriList()); | ||
data.put("requestDecryptUriIgnoreList", encryptionConfig.getRequestDecryptUriIgnoreList()); | ||
return data; | ||
} | ||
|
||
} |
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