Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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.java11
1 files changed, 9 insertions, 2 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
index f286169b..dc272f0a 100644
--- 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
@@ -23,11 +23,18 @@ public class AuthenticationRequest<T extends AuthenticationType<?>> {
private final RepositoryLocation location;
- public AuthenticationRequest(RepositoryLocation location, T authenticationType) {
+ private final String message;
+
+ public AuthenticationRequest(RepositoryLocation location, T authenticationType, String message) {
Assert.isNotNull(location);
Assert.isNotNull(authenticationType);
this.location = location;
this.authenticationType = authenticationType;
+ this.message = message;
+ }
+
+ public AuthenticationRequest(RepositoryLocation location, T authenticationType) {
+ this(location, authenticationType, null);
}
public T getAuthenticationType() {
@@ -39,7 +46,7 @@ public class AuthenticationRequest<T extends AuthenticationType<?>> {
}
public String getMessage() {
- return null;
+ return message;
}
}

Back to the top