@ExportedBean public abstract class CredentialsStoreAction extends Object implements Action, IconSpec, AccessControlled, ModelObjectWithContextMenu, ModelObjectWithChildren
CredentialsStore| Modifier and Type | Class and Description |
|---|---|
static class |
CredentialsStoreAction.CredentialsWrapper
A wrapper object to bind and expose
Credentials instances into the web UI. |
static class |
CredentialsStoreAction.DomainWrapper
A wrapper object to bind and expose
Domain instances into the web UI. |
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem| Modifier and Type | Field and Description |
|---|---|
static Permission |
CREATE
Expose
CredentialsProvider.CREATE for Jelly. |
static Permission |
DELETE
Expose
CredentialsProvider.DELETE for Jelly. |
static XStream2 |
FINGERPRINT_XML
An
XStream2 that replaces Secret and SecretBytes instances with a hash of the secret and
omits fields that should be excluded from credentials fingerprinting. |
static Permission |
MANAGE_DOMAINS
Expose
CredentialsProvider.MANAGE_DOMAINS for Jelly. |
static XStream2 |
SECRETS_REDACTED
|
static Permission |
UPDATE
Expose
CredentialsProvider.UPDATE for Jelly. |
static Permission |
VIEW
Expose
CredentialsProvider.VIEW for Jelly. |
| Constructor and Description |
|---|
CredentialsStoreAction() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckAnyPermission, hasAnyPermission, hasPermissionpublic static final Permission VIEW
CredentialsProvider.VIEW for Jelly.public static final Permission CREATE
CredentialsProvider.CREATE for Jelly.public static final Permission UPDATE
CredentialsProvider.UPDATE for Jelly.public static final Permission DELETE
CredentialsProvider.DELETE for Jelly.public static final Permission MANAGE_DOMAINS
CredentialsProvider.MANAGE_DOMAINS for Jelly.public static final XStream2 SECRETS_REDACTED
public static final XStream2 FINGERPRINT_XML
XStream2 that replaces Secret and SecretBytes instances with a hash of the secret and
omits fields that should be excluded from credentials fingerprinting.@NonNull public abstract CredentialsStore getStore()
CredentialsStore backing this action.CredentialsStore.public String getIconFileName()
getIconFileName in interface Actionpublic String getDisplayName()
getDisplayName in interface ActiongetDisplayName in interface ModelObject@NonNull public List<Action> getActions()
CredentialsStore.CredentialsStore.@CheckForNull public Object getDynamic(String token)
getActions() for Stapler.token - the name of the action.Action or null@CheckForNull public ModelObjectWithContextMenu.ContextMenu getContextMenu(String prefix)
prefix - the prefix to prepend to relative urls.ContextMenu or null@CheckForNull public ModelObjectWithContextMenu.ContextMenu getChildrenContextMenu(String prefix)
prefix - the prefix to prepend to relative urls.ContextMenu or nullpublic ModelObjectWithContextMenu.ContextMenu doContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws Exception
doContextMenu in interface ModelObjectWithContextMenuExceptionpublic ModelObjectWithContextMenu.ContextMenu doChildrenContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws Exception
doChildrenContextMenu in interface ModelObjectWithChildrenExceptionpublic String getUrlName()
getUrlName in interface Actionpublic boolean isVisible()
true if the action should be visible.public String getIconClassName()
getIconClassName in interface IconSpecpublic final String getFullName()
Item.getFullName() or nearest approximation.Item.getFullName() or nearest approximation.public final String getFullDisplayName()
Item.getFullDisplayName() or nearest approximation.Item.getFullDisplayName() or nearest approximation.@Exported @NonNull public Map<String,CredentialsStoreAction.DomainWrapper> getDomains()
CredentialsStoreAction.DomainWrapper instances.CredentialsStoreAction.DomainWrapper instances.@CheckForNull public CredentialsStoreAction.DomainWrapper getDomain(String name)
CredentialsStoreAction.DomainWrapper.name - the name.CredentialsStoreAction.DomainWrapper.public boolean isDomainsModifiable()
CredentialsStore.isDomainsModifiable() for Jelly.CredentialsStore.isDomainsModifiable().public CredentialsStoreAction.DomainWrapper.DescriptorImpl getDomainDescriptor()
CredentialsStoreAction.DomainWrapper.DescriptorImpl for Jelly.public DescriptorExtensionList<DomainSpecification,Descriptor<DomainSpecification>> getSpecificationDescriptors()
DomainSpecification descriptors.DomainSpecification descriptors.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public org.kohsuke.stapler.HttpResponse doCreateDomain(org.kohsuke.stapler.StaplerRequest req)
throws javax.servlet.ServletException,
IOException
req - the request.javax.servlet.ServletException - if something goes wrong.IOException - if something goes wrong.@Nonnull public ACL getACL()
getACL in interface AccessControlledpublic void checkPermission(@Nonnull Permission permission) throws AccessDeniedException
checkPermission in interface AccessControlledAccessDeniedExceptionpublic boolean hasPermission(@Nonnull Permission permission)
hasPermission in interface AccessControlledCopyright © 2016–2021. All rights reserved.