Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1028964 // googleClientSecretFileForDomain

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2775L/17K).

1  
static File googleClientSecretFileForDomain(S domain) {
2  
  if (!isSimpleDomainName(domain)) null;
3  
  ret firstThat(listFiles(javaxSecretDir(domain)),
4  
    f -> startsWith(fileName(f), "client_secret") && endsWith(fileName(f), ".json"));
5  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028964
Snippet name: googleClientSecretFileForDomain
Eternal ID of this version: #1028964/4
Text MD5: 9211e10b54bad338504c6ee1e4eabb18
Transpilation MD5: 65d24b2ab15e627152d4b2b9f6ca904d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-09-04 17:24:44
Source code size: 239 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 147 / 243
Version history: 3 change(s)
Referenced in: [show references]