/** * Provide extension annotations supported by this provider (e.g. {@code javax.annotation.security.RolesAllowed}). * Annotations will be collected according to framework in use. For JAX-RS, annotations from application class, resource * class and resource methods will be collected. * * @return Collection of annotations this provider expects. * @see EndpointConfig#annotations(EndpointConfig.AnnotationScope...) * @see EndpointConfig#combineAnnotations(Class, EndpointConfig.AnnotationScope...) */ default Collection<Class<? extends Annotation>> supportedAnnotations() { return CollectionsHelper.setOf(); }
/** * Class of the configuration type. * The provider may use a POJO implementing a {@link ProviderConfig} to * configure it. When configuring security, you user can provide an instance * of such a class to configure that provider. * * @return class of the type or empty (default) * @see EndpointConfig#instance(Class) */ default Collection<Class<? extends ProviderConfig>> supportedCustomObjects() { return CollectionsHelper.setOf(); }
/** * Keys expected in configuration. This may be used in integrations that can * be fully configured through a file (e.g. integration with web server). * This is a configuration of a specific resource access (e.g. GET on /my/resource) and * is to be used by this provider to evaluate security. * * @return name of the configuration key or empty (default) * @see EndpointConfig#config(String) */ default Collection<String> supportedConfigKeys() { return CollectionsHelper.setOf(); }
@Override public Set<Type> getTypes() { return CollectionsHelper.setOf(type); }
@Override public Collection<Class<? extends Annotation>> supportedAnnotations() { return CollectionsHelper.setOf(PolicyStatement.class); }
/** * A collection of attribute names expected by this provider to override endpoint * configuration. * * @return collection of supported attribute names * @see EndpointConfig#abacAttribute(String) */ default Collection<String> supportedAttributes() { return CollectionsHelper.setOf(); }
/** * Get set of roles the user is in. * * @return roles of this user (or empty if not supported). */ default Collection<String> roles() { return CollectionsHelper.setOf(); } }
@Override public Set<Annotation> getQualifiers() { return CollectionsHelper.setOf(qualifier, QUALIFIER); }
@Override public Set<InjectionPoint> getInjectionPoints() { return CollectionsHelper.setOf(); }
@Override public Set<Class<? extends Annotation>> getStereotypes() { return CollectionsHelper.setOf(); }
@Override public Collection<Class<? extends Annotation>> supportedAnnotations() { return CollectionsHelper.setOf(ScopeValidator.Scope.class, ScopeValidator.Scopes.class); }
@Override public Collection<Class<? extends Annotation>> supportedAnnotations() { return CollectionsHelper.setOf(Scopes.class); }
@Override public Set<InjectionPoint> getInjectionPoints() { return CollectionsHelper.setOf(); }
@Override public Set<Class<? extends Annotation>> getStereotypes() { return CollectionsHelper.setOf(); }
@Override public Set<Type> getTypes() { return CollectionsHelper.setOf(type); }
@Override public Set<Annotation> getQualifiers() { return CollectionsHelper.setOf(qualifier, QUALIFIER); }
@Override public Set<String> supportedMediaTypes() { return CollectionsHelper.setOf(MEDIA_TYPE_TEXT_JAVA_PROPERTIES); }
@Override public Collection<Class<? extends Annotation>> supportedAnnotations() { return CollectionsHelper.setOf(LoginConfig.class); }
@Override public Collection<Class<? extends Annotation>> supportedAnnotations() { return CollectionsHelper.setOf(TimesOfDay.class, TimeOfDay.class, DaysOfWeek.class); }
StringMap(String key, String value) { this(CollectionsHelper.setOf(CollectionsHelper.mapEntry(key, value))); }