Package cz.metacentrum.perun.core.impl
Class PerunAuthenticatorImpl
java.lang.Object
java.net.Authenticator
cz.metacentrum.perun.core.impl.PerunAuthenticatorImpl
-
Nested Class Summary
Nested classes/interfaces inherited from class java.net.Authenticator
Authenticator.RequestorType
-
Method Summary
Modifier and TypeMethodDescriptionprotected PasswordAuthentication
static PerunAuthenticatorImpl
boolean
registerAuthenticationForURL
(URL url, PasswordAuthentication passwordAuthentication) Register passwordAuthentication for specific URL.boolean
Unregister passwordAuthentication for specific URL.Methods inherited from class java.net.Authenticator
getDefault, getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthenticationInstance, setDefault
-
Method Details
-
getPerunAuthenticator
-
getPasswordAuthentication
- Overrides:
getPasswordAuthentication
in classAuthenticator
- See Also:
-
registerAuthenticationForURL
Register passwordAuthentication for specific URL. If there is some passwordAuthentication already registered for the url it is replaced by the new one.- Parameters:
url
-passwordAuthentication
-- Returns:
- true if there is no passwordAuthentication already registered for the URL, false otherwise
-
unRegisterAuthenticationForURL
Unregister passwordAuthentication for specific URL.- Parameters:
url
-- Returns:
- true if there was passwordAuthentication registered for the URL
-