@Documented @Retention(value=RUNTIME) @Target(value=TYPE) @Inherited public @interface NameWith
Credentialshowever 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|
The naming class to use.
|Modifier and Type||Optional Element and Description|
When forced to name via interfaces, the highest priority among all interfaces wins.
Copyright © 2016–2021. All rights reserved.