com.cmonbaby.http.https.UnSafeHostnameVerifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http_lower Show documentation
Show all versions of http_lower Show documentation
Android Http Core Library
package com.cmonbaby.http.https;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLSession;
/**
* Author: Simon
*
QO: 8950764
*
Email: [email protected]
*
WebSize: https://www.cmonbaby.com
*
Version: 1.0.0
*
Date: 2020/12/28
*
Description:
*/
public class UnSafeHostnameVerifier implements HostnameVerifier {
@Override
public boolean verify(String hostname, SSLSession session) {
return false; // 自行添加判断逻辑,true->Safe,false->unsafe
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy