String() — netty Function Reference
Architecture documentation for the String() function in OcspClient.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD eed38e08_ff7d_6979_6ead_826c58934b20["String()"] b3812cec_6383_4848_72ed_d7aa9ab08546["OcspClient"] eed38e08_ff7d_6979_6ead_826c58934b20 -->|defined in| b3812cec_6383_4848_72ed_d7aa9ab08546 style eed38e08_ff7d_6979_6ead_826c58934b20 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler-ssl-ocsp/src/main/java/io/netty/handler/ssl/ocsp/OcspClient.java lines 369–388
private static String parseOcspUrlFromCertificate(X509Certificate cert) {
X509CertificateHolder holder;
try {
holder = new JcaX509CertificateHolder(cert);
} catch (CertificateEncodingException e) {
// Though this should never happen
throw new IllegalArgumentException("Error while parsing X509Certificate into JcaX509CertificateHolder", e);
}
AuthorityInformationAccess aiaExtension = AuthorityInformationAccess.fromExtensions(holder.getExtensions());
// Lookup for OCSP responder url
for (AccessDescription accessDescription : aiaExtension.getAccessDescriptions()) {
if (accessDescription.getAccessMethod().equals(id_ad_ocsp)) {
return accessDescription.getAccessLocation().getName().toASN1Primitive().toString();
}
}
throw new NullPointerException("Unable to find OCSP responder URL in Certificate");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does String() do?
String() is a function in the netty codebase, defined in handler-ssl-ocsp/src/main/java/io/netty/handler/ssl/ocsp/OcspClient.java.
Where is String() defined?
String() is defined in handler-ssl-ocsp/src/main/java/io/netty/handler/ssl/ocsp/OcspClient.java at line 369.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free