일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- css
- 앨범북
- 애플
- WebAuthn
- openssl
- 앱리소스
- apple
- SWIFT
- otpkey
- MYSQL
- FIDO2
- 안드로이드
- git
- 인증
- appres
- Xcode
- kmip
- SSH
- Nodejs
- albumbook
- 2FA
- SSL
- Android
- fido
- SwiftUI
- OTP
- 앱스토어
- OSX
- MSYS2
- MFA
- Today
- Total
목록소스 팁/Java, Android, Kotlin (59)
인디노트
public static String readFromSSLUrl(String url) { String responseMessage = ""; InputStream is = null; InputStreamReader isr = null; BufferedReader br = null; StringBuffer sb = new StringBuffer(); // 이 부분이 https부분입니다.*************************** System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol"); com.sun.net.ssl.internal.ssl.Provider provider = new com.sun.ne..
TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance("PKIX"); trustManagerFactory.init((KeyStore) null); TrustManager[] trustManagers = trustManagerFactory.getTrustManagers(); X509TrustManager trustManager = (X509TrustManager) trustManagers[0]; X509Certificate[] acceptedIssuers = trustManager.getAcceptedIssuers(); System.out.println("X509TrustManager count : " + trustManager..
String version = System.getProperty("java.version"); System.out.println("JAVA Version : " + version);
public static HttpClient wrapClient(HttpClient base) { try { SSLContext ctx = SSLContext.getInstance("TLS"); X509TrustManager tm = new X509TrustManager() { public void checkClientTrusted(X509Certificate[] xcs, String string) throws CertificateException { } public void checkServerTrusted(X509Certificate[] xcs, String string) throws CertificateException { } public X509Certificate[] getAcceptedIssu..
I built a quick and dirty little class to show the opening of a relative .pfx (P12) that I created with keytools. Naturally, you can also look through different potential directories looking for the file, if there are a couple likely places for it to be.The file structure looks like this:./bin ./bin/Test.java ./bin/Test.class ./conf ./conf/myFile.pfxHere's the test code:import java.io.*; import ..
Example 1From project backend-update-center2, under directory /src/main/java/org/jvnet/hudson/update_center/.Source file: Signer.java 38 private X509Certificate loadCertificate(CertificateFactory cf,File f) throws CertificateException, IOException { FileInputStream in=new FileInputStream(f); try { X509Certificate c=(X509Certificate)cf.generateCertificate(in); c.checkValidity(); return c; } final..
[안드로이드] 외부 앱 실행안드로이드 앱에서 다른 앱을 실행하는 방법입니다.먼저 해당 앱이 설치되어 있는지 체크합니다. 아래 메소드는 com.example.testapp 이라는 패키지명으로 시작하는앱이 설치되어 있는지 체크해서 있다면 true 를 리턴합니다.public boolean getPackageList() { boolean isExist = false; PackageManager pkgMgr = getPackageManager(); List mApps; Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); mainIntent.addCategory(Intent.CATEGORY_LAUNCHER); mApps = pkgMgr.queryIntentActi..
참조https://firebase.google.com/docs/analytics/debugview?hl=ko 디버깅 이벤트DebugView는 현재 베타 단계이며 액세스 권한이 부여된 프로젝트에서만 사용할 수 있습니다.DebugView를 사용하면 개발 기기에서 앱이 기록하는 원시 이벤트 데이터를 거의 실시간으로 확인할 수 있습니다. 이 기능은 개발 중 계측 단계에서 매우 유용하며, 분석 구현에서 오류와 실수를 발견하고 모든 이벤트와 사용자 속성이 정상적으로 기록되는지 확인하는 데 도움이 됩니다.디버그 모드 사용 설정일반적으로 앱이 기록하는 이벤트는 약 1시간 동안 취합된 후 일괄 업로드됩니다. 이렇게 하는 이유는 최종 사용자 기기의 배터리를 절약하고 네트워크 데이터 사용량을 줄이기 위함입니다. 그러나 개발..
안드로이드 코딩하다보면 1초후에 동작 같은 기능이 필요할때가 있다.이럴경우 handle을 사용하면 된다. 단순히 1초후에 실행하고, 실행이 끝난후 확인하는 기능 new Handler().postDelayed(new Runnable() {// 1 초 후에 실행 @Override public void run() { // 실행할 동작 코딩 mHandler.sendEmptyMessage(0);// 실행이 끝난후 알림 } }, 1000); Handler mHandler = new Handler() { public void handleMessage(Message msg) { // 실행이 끝난후 확인 가능 } }; 3초후에 실행private Handler mHandler = new Handler(); mHandler..
Using Immersive Full-Screen Mode이전다음This lesson teaches you toChoose an ApproachUse Non-Sticky ImmersionUse Sticky ImmersionYou should also readAdding the App BarAndroid Design GuideTry it outGET THE SAMPLEImmersiveMode sampleVIDEODevBytes: Android 4.4 Immersive ModeAndroid 4.4 (API Level 19) introduces a new SYSTEM_UI_FLAG_IMMERSIVE flag forsetSystemUiVisibility() that lets your app go truly "f..