Class SlackTransport
java.lang.Object
io.jenkins.plugins.changeinvestigator.slack.transport.SlackTransport
- All Implemented Interfaces:
ExtensionPoint
Fixed-origin Slack Web API transport. All public results contain only allowlisted status text.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSlackTransport(URI endpoint, Function<String, String> tokens) -
Method Summary
Modifier and TypeMethodDescriptioncheckConnection(String credentialId, String channel) credentialFingerprint(String credentialId) Opaque binding for cached workspace verification; no token is returned or retained.static SlackTransportget()booleanisSafeToStore(String credentialId, String text) Refuse persistence of a payload that echoes the selected bot secret.static booleanisValidChannel(String value) static booleanisValidUserId(String value) post(String credentialId, SlackRoute route, String frozenPayload, String threadTs, String clientMessageId) booleanverifyMappedUser(String credentialId, SlackRoute route, String userId) Delivery-time guard for an explicitly mapped member and the episode's resolved workspace.verifyMember(String credentialId, String userId) Verify only an explicitly mapped ID; this never enumerates the workspace directory.
-
Constructor Details
-
SlackTransport
public SlackTransport() -
SlackTransport
-
-
Method Details
-
get
-
isValidChannel
-
isValidUserId
-
credentialFingerprint
Opaque binding for cached workspace verification; no token is returned or retained. -
isSafeToStore
Refuse persistence of a payload that echoes the selected bot secret. -
verifyMember
Verify only an explicitly mapped ID; this never enumerates the workspace directory. -
verifyMappedUser
Delivery-time guard for an explicitly mapped member and the episode's resolved workspace. -
checkConnection
-
post
public DeliveryResult post(String credentialId, SlackRoute route, String frozenPayload, String threadTs, String clientMessageId)
-