diff options
Diffstat (limited to 'org.eclipse.mylyn.commons.repositories.core/src/org/eclipse/mylyn/commons/repositories/core/auth/AuthenticationRequest.java')
-rw-r--r-- | org.eclipse.mylyn.commons.repositories.core/src/org/eclipse/mylyn/commons/repositories/core/auth/AuthenticationRequest.java | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.commons.repositories.core/src/org/eclipse/mylyn/commons/repositories/core/auth/AuthenticationRequest.java b/org.eclipse.mylyn.commons.repositories.core/src/org/eclipse/mylyn/commons/repositories/core/auth/AuthenticationRequest.java new file mode 100644 index 00000000..f286169b --- /dev/null +++ b/org.eclipse.mylyn.commons.repositories.core/src/org/eclipse/mylyn/commons/repositories/core/auth/AuthenticationRequest.java @@ -0,0 +1,45 @@ +/******************************************************************************* + * Copyright (c) 2012 Tasktop Technologies and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Tasktop Technologies - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.commons.repositories.core.auth; + +import org.eclipse.core.runtime.Assert; +import org.eclipse.mylyn.commons.repositories.core.RepositoryLocation; + +/** + * @author Steffen Pingel + */ +public class AuthenticationRequest<T extends AuthenticationType<?>> { + + private final T authenticationType; + + private final RepositoryLocation location; + + public AuthenticationRequest(RepositoryLocation location, T authenticationType) { + Assert.isNotNull(location); + Assert.isNotNull(authenticationType); + this.location = location; + this.authenticationType = authenticationType; + } + + public T getAuthenticationType() { + return authenticationType; + } + + public RepositoryLocation getLocation() { + return location; + } + + public String getMessage() { + return null; + } + +} |