BrightSide Workbench Full Report + Source Code
All Classes Namespaces Files Functions Variables Pages
org.turro.external.Authentications Class Reference

Static Public Member Functions

static boolean requiresProcedence ()
 
static IElephantAuthentication getFor (Object extra)
 

Detailed Description

Author
Lluis Turró Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 27 of file Authentications.java.

Member Function Documentation

◆ getFor()

static IElephantAuthentication org.turro.external.Authentications.getFor ( Object  extra)
static

Definition at line 34 of file Authentications.java.

34  {
35  return Instances.cached().byAnnotation(ElephantAuthentication.class, IElephantAuthentication.class)
36  .stream().filter(auth -> auth.accepts(extra)).findFirst().orElse(null);
37  }

◆ requiresProcedence()

static boolean org.turro.external.Authentications.requiresProcedence ( )
static

Definition at line 29 of file Authentications.java.

29  {
30  return Instances.cached().byAnnotation(ElephantAuthentication.class, IElephantAuthentication.class)
31  .stream().anyMatch(auth -> auth.requiresProcedence() == true);
32  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: