public class AnonymousLogin extends Object implements Login
A Login for anonymous sessions if your YouTrack supports it (ie. the
"guest" user is not banned).
Calling login() on an AnonymousLogin is
guaranteed to always succeed.
| Constructor and Description |
|---|
AnonymousLogin(URL youtrackUrl)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
Session |
login()
Performs the login function and returns a
Session with sufficient
state to allow further transactions with YouTrack. |
public AnonymousLogin(URL youtrackUrl)
youtrackUrl - the YouTrack API's url.public Session login() throws AuthenticationException, IOException
LoginSession with sufficient
state to allow further transactions with YouTrack.login in interface LoginAuthenticationException - if the login process fails due to invalid
credentialsIOException - if the YouTrack endpoint is unreachableCopyright © 2017 George Aristy. All rights reserved.