Package com.slack.api.model.event
Class TokensRevokedEvent
java.lang.Object
com.slack.api.model.event.TokensRevokedEvent
- All Implemented Interfaces:
Event,java.io.Serializable
public class TokensRevokedEvent extends java.lang.Object implements Event
When your app's API tokens are revoked, the tokens_revoked event is sent via the Events API to your app if it is subscribed.
The example above details the complete Events API payload, including the event wrapper. Use the team_id to identify the associated workspace.
The inner event's tokens field is a hash keyed with the types of revoked tokens. oauth tokens are user-based tokens negotiated with OAuth or app installation, typically beginning with xoxp-. bot tokens are also negotiated in that process, but belong specifically to any bot user contained in your app and begin with xoxb-.
Each key contains an array of user IDs, not the actual token strings representing your revoked tokens. To use this event most effectively, store your tokens along side user IDs and team IDs.
https://api.slack.com/events/tokens_revoked
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTokensRevokedEvent.Tokens -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTYPE_NAME -
Constructor Summary
Constructors Constructor Description TokensRevokedEvent() -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)TokensRevokedEvent.TokensgetTokens()java.lang.StringgetType()inthashCode()voidsetTokens(TokensRevokedEvent.Tokens tokens)java.lang.StringtoString()
-
Field Details
-
TYPE_NAME
public static final java.lang.String TYPE_NAME- See Also:
- Constant Field Values
-
-
Constructor Details
-
TokensRevokedEvent
public TokensRevokedEvent()
-
-
Method Details
-
getType
public java.lang.String getType() -
getTokens
-
setTokens
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other) -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-