java.lang.Object
io.jenkins.plugins.changeinvestigator.slack.transport.SlackTransport
All Implemented Interfaces:
ExtensionPoint

@Extension public class SlackTransport extends Object implements ExtensionPoint
Fixed-origin Slack Web API transport. All public results contain only allowlisted status text.
  • Constructor Details

    • SlackTransport

      public SlackTransport()
    • SlackTransport

      protected SlackTransport(URI endpoint, Function<String,String> tokens)
  • Method Details

    • get

      public static SlackTransport get()
    • isValidChannel

      public static boolean isValidChannel(String value)
    • isValidUserId

      public static boolean isValidUserId(String value)
    • credentialFingerprint

      public String credentialFingerprint(String credentialId)
      Opaque binding for cached workspace verification; no token is returned or retained.
    • isSafeToStore

      public boolean isSafeToStore(String credentialId, String text)
      Refuse persistence of a payload that echoes the selected bot secret.
    • verifyMember

      public MemberVerification verifyMember(String credentialId, String userId)
      Verify only an explicitly mapped ID; this never enumerates the workspace directory.
    • verifyMappedUser

      public boolean verifyMappedUser(String credentialId, SlackRoute route, String userId)
      Delivery-time guard for an explicitly mapped member and the episode's resolved workspace.
    • checkConnection

      public ConnectionResult checkConnection(String credentialId, String channel)
    • post

      public DeliveryResult post(String credentialId, SlackRoute route, String frozenPayload, String threadTs, String clientMessageId)