Class LegacyWhitelistRule

java.lang.Object
com.atlassian.plugins.whitelist.LegacyWhitelistRule
All Implemented Interfaces:
WhitelistRule, Serializable

@Immutable @PublicApi public final class LegacyWhitelistRule extends Object implements WhitelistRule
Since:
1.0
See Also:
  • Constructor Details

    • LegacyWhitelistRule

      public LegacyWhitelistRule(String acceptRule)
  • Method Details

    • getId

      public Integer getId()
      Specified by:
      getId in interface WhitelistRule
      Returns:
      the id of the whitelist rule; null if not yet persisted
    • getExpression

      public String getExpression()
      Specified by:
      getExpression in interface WhitelistRule
      Returns:
      an whitelist rule expression; can have a specific meaning depending on the type.
    • getType

      public WhitelistType getType()
      Specified by:
      getType in interface WhitelistRule
      Returns:
      the whitelist rule type
    • isAllowInbound

      public boolean isAllowInbound()
      Specified by:
      isAllowInbound in interface WhitelistRule
      Returns:
      true if the whitelist rule represents inbound requests as well as outbound requests, false otherwise
    • isAuthenticationRequired

      public boolean isAuthenticationRequired()
      Specified by:
      isAuthenticationRequired in interface WhitelistRule
      Returns:
      true if the whitelist rule requires the user to be authenticated, false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object