mirror of https://github.com/apache/jclouds.git
JCLOUDS-546: Remove Javadoc @author annotations
Annotations removed with: find -name \*.java | xargs sed -i /@author/d Empty Javadoc removed with multiple iterations of: find -name \*.java | xargs sed -i -z 's/ \*\n \*\// \*\//' find -name \*.java | xargs sed -i -z 's/ \* \n \*\// \*\//' find -name \*.java | xargs sed -i -z 's/\/\*\*\n \*\/\n//'
This commit is contained in:
parent
289197a560
commit
e608c35a02
|
@ -38,7 +38,6 @@ import org.jclouds.rest.annotations.Endpoint;
|
|||
* OAuthAuthenticator as a request filter, which in turn uses this class to
|
||||
* perform token requests.
|
||||
*
|
||||
* @author David Alves
|
||||
* @see OAuthAsyncApi
|
||||
*/
|
||||
@Endpoint(Authentication.class)
|
||||
|
|
|
@ -31,8 +31,6 @@ import com.google.inject.Module;
|
|||
|
||||
/**
|
||||
* Implementation of {@link ApiMetadata} for OAuth 2 API
|
||||
*
|
||||
* @author David Alves
|
||||
*/
|
||||
public class OAuthApiMetadata extends BaseHttpApiMetadata<OAuthApi> {
|
||||
|
||||
|
|
|
@ -22,8 +22,6 @@ import java.util.Map;
|
|||
|
||||
/**
|
||||
* The constants for OAuth \
|
||||
*
|
||||
* @author David Alves
|
||||
*/
|
||||
public final class OAuthConstants {
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@ import java.lang.annotation.Target;
|
|||
/**
|
||||
* Qualifies OAuth related resources, such as Endpoint.
|
||||
*
|
||||
* @author David Alves
|
||||
* @see org.jclouds.oauth.v2.OAuthAsyncApi
|
||||
*/
|
||||
@Retention(value = RetentionPolicy.RUNTIME)
|
||||
|
|
|
@ -32,8 +32,6 @@ import com.google.inject.Provides;
|
|||
|
||||
/**
|
||||
* An OAuth module to be used form other providers.
|
||||
*
|
||||
* @author David Alves
|
||||
*/
|
||||
public class OAuthAuthenticationModule extends AbstractModule {
|
||||
|
||||
|
|
|
@ -31,8 +31,6 @@ import com.google.inject.Provides;
|
|||
|
||||
/**
|
||||
* OAuth module to when accessing OAuth stand-alone.
|
||||
*
|
||||
* @author David Alves
|
||||
*/
|
||||
@ConfiguresHttpApi
|
||||
public class OAuthHttpApiModule extends HttpApiModule<OAuthApi> {
|
||||
|
|
|
@ -48,8 +48,6 @@ import static org.jclouds.Constants.PROPERTY_SESSION_INTERVAL;
|
|||
|
||||
/**
|
||||
* Base OAuth module
|
||||
*
|
||||
* @author David Alves
|
||||
*/
|
||||
public class OAuthModule extends AbstractModule {
|
||||
|
||||
|
|
|
@ -18,8 +18,6 @@ package org.jclouds.oauth.v2.config;
|
|||
|
||||
/**
|
||||
* Configurable properties for jclouds OAuth
|
||||
*
|
||||
* @author David Alves
|
||||
*/
|
||||
public class OAuthProperties {
|
||||
|
||||
|
|
|
@ -26,8 +26,6 @@ import java.lang.annotation.Target;
|
|||
* Used to annotate REST methods/ifaces that use OAuthAuthentication.
|
||||
* <p/>
|
||||
* Sets the scopes for the token request for that particular method.
|
||||
*
|
||||
* @author David Alves
|
||||
*/
|
||||
@Retention(value = RetentionPolicy.RUNTIME)
|
||||
@Target(value = {ElementType.TYPE, ElementType.METHOD})
|
||||
|
|
|
@ -35,7 +35,6 @@ import static com.google.common.base.Preconditions.checkState;
|
|||
/**
|
||||
* The claimset for the token.
|
||||
*
|
||||
* @author David Alves
|
||||
* @see <a
|
||||
* href="https://developers.google.com/accounts/docs/OAuth2ServiceAccount"
|
||||
* >doc</a>
|
||||
|
|
|
@ -25,7 +25,6 @@ import static com.google.common.base.Preconditions.checkNotNull;
|
|||
/**
|
||||
* The header for the OAuth token, contains the signer algorithm's name and the type of the token
|
||||
*
|
||||
* @author David Alves
|
||||
* @see <a href="https://developers.google.com/accounts/docs/OAuth2ServiceAccount">doc</a>
|
||||
*/
|
||||
public class Header {
|
||||
|
|
|
@ -26,8 +26,6 @@ import static com.google.common.base.Preconditions.checkNotNull;
|
|||
|
||||
/**
|
||||
* The oauth token, obtained upon a successful token request and ready to embed in requests.
|
||||
*
|
||||
* @author David Alves
|
||||
*/
|
||||
public class Token {
|
||||
|
||||
|
|
|
@ -24,8 +24,6 @@ import static com.google.common.base.Preconditions.checkNotNull;
|
|||
|
||||
/**
|
||||
* A complete token request.
|
||||
*
|
||||
* @author David Alves
|
||||
*/
|
||||
public class TokenRequest {
|
||||
|
||||
|
|
|
@ -24,8 +24,6 @@ import java.util.Set;
|
|||
|
||||
/**
|
||||
* Transforms a TokenRequest into a specific format (e.g. JWT token)
|
||||
*
|
||||
* @author David Alves
|
||||
*/
|
||||
@ImplementedBy(JWTTokenRequestFormat.class)
|
||||
public interface TokenRequestFormat {
|
||||
|
|
|
@ -34,8 +34,6 @@ import static com.google.common.base.Preconditions.checkState;
|
|||
* To be used by client applications to embed an OAuth authentication in their REST requests.
|
||||
* <p/>
|
||||
* TODO when we're able to use the OAuthAuthentication an this should be used automatically
|
||||
*
|
||||
* @author David Alves
|
||||
*/
|
||||
@Singleton
|
||||
public class OAuthAuthenticator implements HttpRequestFilter {
|
||||
|
|
|
@ -49,8 +49,6 @@ import com.google.inject.name.Named;
|
|||
* Builds the default token request with the following claims: iss,scope,aud,iat,exp.
|
||||
* <p/>
|
||||
* TODO scopes etc should come from the REST method and not from a global property
|
||||
*
|
||||
* @author David Alves
|
||||
*/
|
||||
@Singleton
|
||||
public class BuildTokenRequest implements Function<GeneratedHttpRequest, TokenRequest> {
|
||||
|
|
|
@ -24,9 +24,6 @@ import org.jclouds.oauth.v2.domain.TokenRequest;
|
|||
import javax.inject.Inject;
|
||||
import javax.inject.Singleton;
|
||||
|
||||
/**
|
||||
* @author David Alves
|
||||
*/
|
||||
@Singleton
|
||||
public class FetchToken implements Function<TokenRequest, Token> {
|
||||
|
||||
|
|
|
@ -51,7 +51,6 @@ import static org.jclouds.util.Throwables2.getFirstThrowableOfType;
|
|||
* Loads {@link OAuthCredentials} from a pem private key using the KeyFactory obtained from the JWT Algorithm
|
||||
* Name<->KeyFactory name mapping in OAuthConstants. The pem pk algorithm must match the KeyFactory algorithm.
|
||||
*
|
||||
* @author David Alves
|
||||
* @see org.jclouds.oauth.v2.OAuthConstants#OAUTH_ALGORITHM_NAMES_TO_KEYFACTORY_ALGORITHM_NAMES
|
||||
*/
|
||||
@Singleton
|
||||
|
|
|
@ -40,8 +40,6 @@ import static org.jclouds.oauth.v2.config.OAuthProperties.SIGNATURE_OR_MAC_ALGOR
|
|||
/**
|
||||
* Function that signs/produces mac's for OAuth tokens, provided a {@link Signature} or a {@link Mac} algorithm and
|
||||
* {@link PrivateKey}
|
||||
*
|
||||
* @author David Alves
|
||||
*/
|
||||
public class SignOrProduceMacForToken implements Function<byte[], byte[]> {
|
||||
|
||||
|
|
|
@ -30,8 +30,6 @@ import static org.jclouds.http.HttpUtils.closeClientButKeepContentStream;
|
|||
|
||||
/**
|
||||
* This will parse and set an appropriate exception on the command object.
|
||||
*
|
||||
* @author David Alves
|
||||
*/
|
||||
@Singleton
|
||||
public class OAuthErrorHandler implements HttpErrorHandler {
|
||||
|
|
|
@ -27,8 +27,6 @@ import javax.inject.Singleton;
|
|||
/**
|
||||
* Generic implementation of a token binder. Uses a provided {@link TokenRequestFormat} to actually bind tokens to
|
||||
* requests.
|
||||
*
|
||||
* @author David Alves
|
||||
*/
|
||||
@Singleton
|
||||
public class OAuthTokenBinder implements Binder {
|
||||
|
|
|
@ -27,8 +27,6 @@ import java.util.Map;
|
|||
/**
|
||||
* JSON TypeAdapter for the ClaimSet type. Pull the claims maps to the root level and adds two properties for the
|
||||
* expiration time and issuing time.
|
||||
*
|
||||
* @author David Alves
|
||||
*/
|
||||
public class ClaimSetTypeAdapter extends TypeAdapter<ClaimSet> {
|
||||
|
||||
|
|
|
@ -44,8 +44,6 @@ import com.google.common.collect.ImmutableSet;
|
|||
* - creates the full url encoded payload as described in:
|
||||
* https://developers.google.com/accounts/docs/OAuth2ServiceAccount
|
||||
* <p/>
|
||||
*
|
||||
* @author David Alves
|
||||
*/
|
||||
@Singleton
|
||||
public class JWTTokenRequestFormat implements TokenRequestFormat {
|
||||
|
|
|
@ -28,8 +28,6 @@ import org.testng.annotations.Test;
|
|||
* <pre>
|
||||
* META-INF/services/org.jclouds.apis.ApiMetadata
|
||||
* </pre>
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = "unit")
|
||||
public class OAuthApiMetadataTest extends BaseApiMetadataTest {
|
||||
|
|
|
@ -29,8 +29,6 @@ import static org.jclouds.oauth.v2.config.OAuthProperties.AUDIENCE;
|
|||
|
||||
/**
|
||||
* Utils for OAuth tests.
|
||||
*
|
||||
* @author David Alves
|
||||
*/
|
||||
public class OAuthTestUtils {
|
||||
|
||||
|
|
|
@ -38,8 +38,6 @@ import org.testng.annotations.Test;
|
|||
|
||||
/**
|
||||
* Tests that a token requess is well formed.
|
||||
*
|
||||
* @author David Alves
|
||||
*/
|
||||
@Test(groups = "unit")
|
||||
public class OAuthApiExpectTest extends BaseOAuthApiExpectTest {
|
||||
|
|
|
@ -42,8 +42,6 @@ import org.testng.annotations.Test;
|
|||
* - test.jclouds.oauth.audience
|
||||
* - test.jclouds.oauth.scopes
|
||||
* - test.jclouds.oauth.signature-or-mac-algorithm
|
||||
*
|
||||
* @author David Alves
|
||||
*/
|
||||
@Test(groups = "live", singleThreaded = true)
|
||||
public class OAuthApiLiveTest extends BaseOAuthApiLiveTest {
|
||||
|
|
|
@ -27,9 +27,6 @@ import java.util.Properties;
|
|||
import static org.jclouds.oauth.v2.functions.OAuthCredentialsSupplier.OAuthCredentialsForCredentials;
|
||||
import static org.testng.Assert.assertNotNull;
|
||||
|
||||
/**
|
||||
* @author David Alves
|
||||
*/
|
||||
@Test(groups = "unit")
|
||||
public class OAuthCredentialsSupplierTest {
|
||||
|
||||
|
|
|
@ -31,8 +31,6 @@ import org.testng.annotations.Test;
|
|||
|
||||
/**
|
||||
* Tests the SignOrProduceMacForToken
|
||||
*
|
||||
* @author David Alves
|
||||
*/
|
||||
@Test(groups = "unit")
|
||||
public class SignerFunctionTest {
|
||||
|
|
|
@ -30,9 +30,6 @@ import static org.easymock.EasyMock.replay;
|
|||
import static org.easymock.EasyMock.reportMatcher;
|
||||
import static org.easymock.EasyMock.verify;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = "unit")
|
||||
public class OAuthErrorHandlerTest {
|
||||
|
||||
|
|
|
@ -24,8 +24,6 @@ import org.testng.annotations.Test;
|
|||
|
||||
/**
|
||||
* Tests that the Base64 implementations used to Base64 encode the tokens are Url safe.
|
||||
*
|
||||
* @author David Alves
|
||||
*/
|
||||
@Test(groups = "unit")
|
||||
public class Base64UrlSafeTest {
|
||||
|
|
|
@ -18,9 +18,6 @@ package org.jclouds.oauth.v2.internal;
|
|||
|
||||
import org.jclouds.oauth.v2.OAuthApi;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class BaseOAuthApiExpectTest extends BaseOAuthExpectTest<OAuthApi> {
|
||||
|
||||
}
|
||||
|
|
|
@ -30,9 +30,6 @@ import org.jclouds.oauth.v2.OAuthApi;
|
|||
import org.testng.annotations.Test;
|
||||
|
||||
|
||||
/**
|
||||
* @author David Alves
|
||||
*/
|
||||
@Test(groups = "live")
|
||||
public class BaseOAuthApiLiveTest extends BaseApiLiveTest<OAuthApi> {
|
||||
|
||||
|
|
|
@ -53,8 +53,6 @@ import com.google.inject.Module;
|
|||
* <p/>
|
||||
* This test asserts that a provider can authenticate with oauth for a given scope, or more simply
|
||||
* that authentication/authorization is working.
|
||||
*
|
||||
* @author David Alves
|
||||
*/
|
||||
|
||||
@Test(groups = "live")
|
||||
|
|
|
@ -18,9 +18,6 @@ package org.jclouds.oauth.v2.internal;
|
|||
|
||||
import org.jclouds.rest.internal.BaseRestApiExpectTest;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class BaseOAuthExpectTest<T> extends BaseRestApiExpectTest<T> {
|
||||
|
||||
public BaseOAuthExpectTest() {
|
||||
|
|
|
@ -36,9 +36,6 @@ import org.testng.annotations.Test;
|
|||
import com.google.common.base.Splitter;
|
||||
import com.google.common.collect.Iterables;
|
||||
|
||||
/**
|
||||
* @author David Alves
|
||||
*/
|
||||
@Test(groups = "unit")
|
||||
public class JWTTokenRequestFormatTest {
|
||||
public static final String STRING_THAT_GENERATES_URL_UNSAFE_BASE64_ENCODING = "§1234567890'+±!\"#$%&/()" +
|
||||
|
|
|
@ -23,9 +23,6 @@ import org.testng.annotations.Test;
|
|||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
/**
|
||||
* @author David Alves
|
||||
*/
|
||||
@Test(groups = "unit")
|
||||
public class ParseTokenTest extends BaseItemParserTest<Token> {
|
||||
|
||||
|
|
Loading…
Reference in New Issue