Package nbbrd.io.http
Interface HttpAuthenticator
public interface HttpAuthenticator
-
Method Summary
Modifier and TypeMethodDescription@Nullable PasswordAuthenticationgetPasswordAuthentication(@NonNull URL url) default voidinvalidate(@NonNull URL url) static @NonNull PasswordAuthenticationnewPassword(@NonNull String username, @NonNull String password) static @NonNull PasswordAuthenticationstatic @NonNull HttpAuthenticatornoOp()
-
Method Details
-
getPasswordAuthentication
@Nullable PasswordAuthentication getPasswordAuthentication(@NonNull @NonNull URL url) throws IOException - Throws:
IOException
-
invalidate
- Throws:
IOException
-
noOp
-
newPassword
@NonNull static @NonNull PasswordAuthentication newPassword(@NonNull @NonNull String username, @NonNull @NonNull String password) -
newToken
-