com.eclipsesource.restfuse.annotation.Authentication Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.eclipsesource.restfuse Show documentation
Show all versions of com.eclipsesource.restfuse Show documentation
An open-source JUnit extension for automated HTTP/REST Tests
/*******************************************************************************
* Copyright (c) 2011 EclipseSource 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:
* Holger Staudacher - initial API and implementation
******************************************************************************/
package com.eclipsesource.restfuse.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import com.eclipsesource.restfuse.AuthenticationType;
/**
* The Authentication
can be used within a {@link HttpTest}
annotation
* to send authentication information within an outgoing http request. Currently only BASIC and
* DIGEST authentication are supported.
*
* @see AuthenticationType
*/
@Retention( RetentionPolicy.RUNTIME )
@Target( { ElementType.ANNOTATION_TYPE } )
public @interface Authentication {
/**
* The type
attribute specifies the type of the authentication method. Currently
* only BASIC and DIGEST authentication are supported. This may change in future.
*
* @see AuthenticationType
*/
AuthenticationType type();
String user();
String password();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy