Package com.emc.documentum.rest.security

# Annotation Interface AnonymousAccess

@Documented @Target(TYPE) @Retention(RUNTIME) public @interface AnonymousAccess
An annotation used on a controller class to make this resource anonymously accessible. This annotation can only be used on the implementation class of `AbstractController`. It should be used with Spring annotation @Controller or @RestController together.

- ## Required Element Summary

  Required Elements
  Modifier and Type
  Required Element
  Description
  `Class<? extends RepositoryContextInitializer>`
  `contextInitializerClass`
  Specifies the context initializer class.

- ## Optional Element Summary

  Optional Elements
  Modifier and Type
  Optional Element
  Description
  `Class<? extends RepositoryContextCleaner>`
  `contextCleanerClass`
  Specifies the context cleaner class.

- ## Element Details

  - ### contextInitializerClass

    Class<? extends RepositoryContextInitializer> contextInitializerClass
    Specifies the context initializer class. This class should be an implementation of interface `RepositoryContextInitializer` which implements the security context setup logic, e.g. `RepositoryContextHolder.setRepositoryName(String)`, `RepositoryContextHolder.setLoginName(String)`, `RepositoryContextHolder.setPassword(Object)`, and `RepositoryContextHolder.setAuthType(AuthType)`.
    Returns:
      an implementation class of `RepositoryContextInitializer`

- - ### contextCleanerClass

    Class<? extends RepositoryContextCleaner> contextCleanerClass
    Specifies the context cleaner class. This class should be an implementation of interface `RepositoryContextCleaner` which implements the security context cleanup logic, e.g, `RepositoryContextHolder.clear()`. Defaults to the class `DefaultRepositoryContextCleaner`
    Returns:
      an implementation class of `RepositoryContextCleaner`
    Default:
      com.emc.documentum.rest.security.DefaultRepositoryContextCleaner.class