com.atlassian.confluence.security.trust
Class ConfluenceTrustedApplication

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

public class ConfluenceTrustedApplication
extends Object


Constructor Summary
ConfluenceTrustedApplication()
           
 
Method Summary
 void addRestriction(TrustedApplicationRestriction restriction)
           
 boolean equals(Object o)
          Performs an equality check on the passed in object.
 long getId()
           
 Set<String> getIpRestrictions()
           
 String getName()
           
 AliasedKey getPublicKey()
           
 int getRequestTimeout()
           
 Set<TrustedApplicationRestriction> getRestrictions()
           
 Set<String> getUrlRestrictions()
           
 int hashCode()
           
 boolean removeRestriction(TrustedApplicationRestriction restriction)
           
 void setId(long id)
           
 void setName(String name)
           
 void setPublicKey(AliasedKey publicKey)
           
 void setRequestTimeout(int requestTimeout)
           
 void setRestrictions(Set<TrustedApplicationRestriction> restrictions)
           
 com.atlassian.security.auth.trustedapps.TrustedApplication toDefaultTrustedApplication(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider)
          Create an instance of TrustedApplication based on this instance of ConfluenceTrustedApplication.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceTrustedApplication

public ConfluenceTrustedApplication()
Method Detail

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(@NotNull
                                                                                                    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.


Copyright © 2003-2012 Atlassian. All Rights Reserved.