@Documented @Retention(value=RUNTIME) @Target(value=TYPE) @Inherited public @interface NameWith
Credentials
however given the Java requirements of Jenkins we do not have this luxury. In any case different types of credentials
will have different types of naming schemes, eg certificates vs username/password.
This annotation is applied to implementations or to marker interfaces. Where an implementation class is annotated,
that annotation will always win, even if inherited. In the absence of the base class being annotated all the
interfaces that the credential implements will be checked for the annotation. When checking multiple interfaces,
the highest priority wins. The behaviour is indeterminate if there are multiple annotated interfaces with the same
priority.Modifier and Type | Required Element and Description |
---|---|
Class<? extends CredentialsNameProvider<? extends Credentials>> |
value
The naming class to use.
|
Modifier and Type | Optional Element and Description |
---|---|
int |
priority
When forced to name via interfaces, the highest priority among all interfaces wins.
|
@NonNull public abstract Class<? extends CredentialsNameProvider<? extends Credentials>> value
Copyright © 2015. All rights reserved.