Package io.micronaut.azure.condition
Class EnvironmentCredentialsCondition
java.lang.Object
io.micronaut.azure.condition.EnvironmentCredentialsCondition
- All Implemented Interfaces:
io.micronaut.context.condition.Condition
,Predicate<io.micronaut.context.condition.ConditionContext>
public class EnvironmentCredentialsCondition
extends Object
implements io.micronaut.context.condition.Condition
A custom condition that matches when the following environment variables are defined.
AZURE_CLIENT_ID
AZURE_CLIENT_SECRET
AZURE_TENANT_ID
or:
AZURE_CLIENT_ID
AZURE_CLIENT_CERTIFICATE_PATH
AZURE_TENANT_ID
or:
AZURE_CLIENT_ID
AZURE_USERNAME
AZURE_PASSWORD
- Since:
- 3.3.1
- Author:
- Álvaro Sánchez-Mariscal
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(io.micronaut.context.condition.ConditionContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.context.condition.Condition
test
-
Constructor Details
-
EnvironmentCredentialsCondition
public EnvironmentCredentialsCondition()
-
-
Method Details
-
matches
public boolean matches(io.micronaut.context.condition.ConditionContext context) - Specified by:
matches
in interfaceio.micronaut.context.condition.Condition
-