Class ConfluenceTrustedApplication

java.lang.Object
com.atlassian.confluence.security.trust.ConfluenceTrustedApplication

public class ConfluenceTrustedApplication extends Object
  • Constructor Details

    • ConfluenceTrustedApplication

      public ConfluenceTrustedApplication()
  • Method Details

    • getId

      public long getId()
    • setId

      public void setId(long id)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getRequestTimeout

      public int getRequestTimeout()
      Returns:
      Number of milliseconds the signed request is considered valid by the application that receives the request.
    • setRequestTimeout

      public void setRequestTimeout(int requestTimeout)
    • getPublicKey

      public AliasedKey getPublicKey()
    • setPublicKey

      public void setPublicKey(AliasedKey publicKey)
    • getRestrictions

      public Set<TrustedApplicationRestriction> getRestrictions()
    • setRestrictions

      public void setRestrictions(Set<TrustedApplicationRestriction> restrictions)
    • addRestriction

      public void addRestriction(TrustedApplicationRestriction restriction)
    • removeRestriction

      public boolean removeRestriction(TrustedApplicationRestriction restriction)
    • getUrlRestrictions

      public Set<String> getUrlRestrictions()
    • getIpRestrictions

      public Set<String> getIpRestrictions()
    • equals

      public boolean equals(Object o)
      Performs an equality check on the passed in object. TrustedApplications are considered equal if their id's are equal.
      Overrides:
      equals in class Object
      Returns:
      true if the passed in object is a ConfluenceTrustedApplication and is considered equal
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toDefaultTrustedApplication

      public final com.atlassian.security.auth.trustedapps.TrustedApplication toDefaultTrustedApplication(@NonNull com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider)
      Create an instance of TrustedApplication based on this instance of ConfluenceTrustedApplication.
      Parameters:
      encryptionProvider - The EncryptionProvider to be used by the TrustedApplication. Cannot be null.
      Returns:
      TrustedApplication based on this.