Added comments & updated code structure.
Change-Id: I2ff7adb2954b87e8345a6e0619b14614883c4200
diff --git a/full/src/main/java/de/ids_mannheim/korap/oauth2/constant/OAuth2ClientType.java b/full/src/main/java/de/ids_mannheim/korap/oauth2/constant/OAuth2ClientType.java
index 60209be..dd1da81 100644
--- a/full/src/main/java/de/ids_mannheim/korap/oauth2/constant/OAuth2ClientType.java
+++ b/full/src/main/java/de/ids_mannheim/korap/oauth2/constant/OAuth2ClientType.java
@@ -1,20 +1,32 @@
package de.ids_mannheim.korap.oauth2.constant;
+/**
+ * Defines possible OAuth2 client types.
+ *
+ * Quoted from RFC 6749:
+ * <ul>
+ *
+ * <li> <b>Confidential clients</b> are clients capable of maintaining
+ * the confidentiality of their
+ * credentials (e.g., client implemented on a secure server with
+ * restricted access to the client credentials), or capable of secure
+ * client authentication using other means.
+ * </li>
+ *
+ * <li>
+ * <b>Public clients</b> are Clients incapable of maintaining the
+ * confidentiality of their credentials (e.g., clients executing on
+ * the device used by the resource owner, such as an installed
+ * native application or a web browser-based application), and
+ * incapable of secure client authentication via any other means.
+ * Mobile and Javascript apps are considered public clients.
+ * </li>
+ * </ul>
+ *
+ * @author margaretha
+ *
+ */
public enum OAuth2ClientType {
- // EM: from RFC 6749
-
-// Clients capable of maintaining the confidentiality of their
-// credentials (e.g., client implemented on a secure server with
-// restricted access to the client credentials), or capable of secure
-// client authentication using other means.
- CONFIDENTIAL,
-
-// Clients incapable of maintaining the confidentiality of their
-// credentials (e.g., clients executing on the device used by the
-// resource owner, such as an installed native application or a web
-// browser-based application), and incapable of secure client
-// authentication via any other means. Mobile and Javascript apps
-// are considered public clients.
- PUBLIC;
+ CONFIDENTIAL, PUBLIC;
}