diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/spi/common/CDOAuthenticationResult.java')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/spi/common/CDOAuthenticationResult.java | 120 |
1 files changed, 60 insertions, 60 deletions
diff --git a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/spi/common/CDOAuthenticationResult.java b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/spi/common/CDOAuthenticationResult.java index bd0d39f6f7..4a513e7906 100644 --- a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/spi/common/CDOAuthenticationResult.java +++ b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/spi/common/CDOAuthenticationResult.java @@ -1,60 +1,60 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - */ -package org.eclipse.emf.cdo.spi.common; - -import org.eclipse.net4j.util.io.ExtendedDataInput; -import org.eclipse.net4j.util.io.ExtendedDataOutput; - -import java.io.IOException; -import java.io.Serializable; - -/** - * The result of an authentication operation. Carries a userID and a crypted token. - * - * @author Eike Stepper - * @since 4.0 - */ -public final class CDOAuthenticationResult implements Serializable -{ - private static final long serialVersionUID = 1L; - - private String userID; - - private byte[] cryptedToken; - - public CDOAuthenticationResult(String userID, byte[] cryptedToken) - { - this.userID = userID; - this.cryptedToken = cryptedToken; - } - - public CDOAuthenticationResult(ExtendedDataInput in) throws IOException - { - userID = in.readString(); - cryptedToken = in.readByteArray(); - } - - public void write(ExtendedDataOutput out) throws IOException - { - out.writeString(userID); - out.writeByteArray(cryptedToken); - } - - public String getUserID() - { - return userID; - } - - public byte[] getCryptedToken() - { - return cryptedToken; - } -} +/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.spi.common;
+
+import org.eclipse.net4j.util.io.ExtendedDataInput;
+import org.eclipse.net4j.util.io.ExtendedDataOutput;
+
+import java.io.IOException;
+import java.io.Serializable;
+
+/**
+ * The result of an authentication operation. Carries a userID and a crypted token.
+ *
+ * @author Eike Stepper
+ * @since 4.0
+ */
+public final class CDOAuthenticationResult implements Serializable
+{
+ private static final long serialVersionUID = 1L;
+
+ private String userID;
+
+ private byte[] cryptedToken;
+
+ public CDOAuthenticationResult(String userID, byte[] cryptedToken)
+ {
+ this.userID = userID;
+ this.cryptedToken = cryptedToken;
+ }
+
+ public CDOAuthenticationResult(ExtendedDataInput in) throws IOException
+ {
+ userID = in.readString();
+ cryptedToken = in.readByteArray();
+ }
+
+ public void write(ExtendedDataOutput out) throws IOException
+ {
+ out.writeString(userID);
+ out.writeByteArray(cryptedToken);
+ }
+
+ public String getUserID()
+ {
+ return userID;
+ }
+
+ public byte[] getCryptedToken()
+ {
+ return cryptedToken;
+ }
+}
|