001// Licensed under the Apache License, Version 2.0 (the "License");
002// you may not use this file except in compliance with the License.
003// You may obtain a copy of the License at
004//
005//     http://www.apache.org/licenses/LICENSE-2.0
006//
007// Unless required by applicable law or agreed to in writing, software
008// distributed under the License is distributed on an "AS IS" BASIS,
009// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
010// See the License for the specific language governing permissions and
011// limitations under the License.
012
013package org.apache.tapestry5.annotations;
014
015import org.apache.tapestry5.SymbolConstants;
016import org.apache.tapestry5.ioc.annotations.AnnotationUseContext;
017import org.apache.tapestry5.ioc.annotations.UseWith;
018
019import java.lang.annotation.Documented;
020import java.lang.annotation.Retention;
021import java.lang.annotation.Target;
022
023import static java.lang.annotation.ElementType.TYPE;
024import static java.lang.annotation.RetentionPolicy.RUNTIME;
025
026/**
027 * A marker annotation that indicates that the page in question may only be accessed via HTTPS.
028 *
029 * Normally, this annotation is ignored in development mode and only used in production mode. This can be changed
030 * via the {@link SymbolConstants#SECURE_ENABLED} configuration symbol. 
031 *
032 * @see org.apache.tapestry5.MetaDataConstants#SECURE_PAGE
033 */
034@Target(TYPE)
035@Retention(RUNTIME)
036@Documented
037@UseWith(AnnotationUseContext.PAGE)
038public @interface Secure
039{
040}