Package org.apache.jena.http.auth
Class AuthEnv
java.lang.Object
org.apache.jena.http.auth.AuthEnv
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionjava.net.http.HttpRequest.BuilderAdd authentication, if in the authModifiers registry.voidvoidClear all registrations.static AuthEnvget()getUsernamePassword(URI uri) Return the (username, password) for aURI.booleanhasRegistation(URI uri) Check whether there is a registration.voidregisterBasicAuthModifier(String url, String user, String password) Register the users/password which is to be used with basic auth at the given URLvoidregisterUsernamePassword(URI uri, String user, String password) Register (username, password) information for a URI endpoint.voidRegister (username, password) information for a URI endpoint.
-
Field Details
-
LOG
public static org.slf4j.Logger LOG
-
-
Method Details
-
get
-
registerUsernamePassword
Register (username, password) information for a URI endpoint. -
hasRegistation
Check whether there is a registration. -
unregisterUsernamePassword
Register (username, password) information for a URI endpoint. -
getUsernamePassword
Return the (username, password) for aURI.If there is no exact match for the URI, then the information mapped from the longest prefix entry is returned.
-
clearActiveAuthentication
public void clearActiveAuthentication() -
clearAuthEnv
public void clearAuthEnv()Clear all registrations. -
addAuth
public java.net.http.HttpRequest.Builder addAuth(java.net.http.HttpRequest.Builder requestBuilder, String uri) Add authentication, if in the authModifiers registry. That is, add the right headers, and for digest, calculate the new digest string. -
registerBasicAuthModifier
Register the users/password which is to be used with basic auth at the given URL
-