Class SslClientCertAttribute
- java.lang.Object
-
- io.quarkus.vertx.http.runtime.attribute.SslClientCertAttribute
-
- All Implemented Interfaces:
ExchangeAttribute
public class SslClientCertAttribute extends Object implements ExchangeAttribute
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSslClientCertAttribute.Builder
-
Field Summary
Fields Modifier and Type Field Description static StringBEGIN_CERTstatic StringEND_CERTstatic SslClientCertAttributeINSTANCE
-
Constructor Summary
Constructors Constructor Description SslClientCertAttribute()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringreadAttribute(io.vertx.ext.web.RoutingContext exchange)Resolve the attribute from the HTTP server exchange.static StringtoPem(X509Certificate certificate)voidwriteAttribute(io.vertx.ext.web.RoutingContext exchange, String newValue)Sets a new value for the attribute.
-
-
-
Field Detail
-
INSTANCE
public static final SslClientCertAttribute INSTANCE
-
BEGIN_CERT
public static final String BEGIN_CERT
- See Also:
- Constant Field Values
-
END_CERT
public static final String END_CERT
- See Also:
- Constant Field Values
-
-
Method Detail
-
toPem
public static String toPem(X509Certificate certificate) throws CertificateEncodingException
- Throws:
CertificateEncodingException
-
readAttribute
public String readAttribute(io.vertx.ext.web.RoutingContext exchange)
Description copied from interface:ExchangeAttributeResolve the attribute from the HTTP server exchange. This may return null if the attribute is not present.- Specified by:
readAttributein interfaceExchangeAttribute- Parameters:
exchange- The exchange- Returns:
- The attribute
-
writeAttribute
public void writeAttribute(io.vertx.ext.web.RoutingContext exchange, String newValue) throws ReadOnlyAttributeExceptionDescription copied from interface:ExchangeAttributeSets a new value for the attribute. Not all attributes are writable.- Specified by:
writeAttributein interfaceExchangeAttribute- Parameters:
exchange- The exchangenewValue- The new value for the attribute- Throws:
ReadOnlyAttributeException- when attribute cannot be written
-
-