com.atlassian.confluence.security.trust
Class ConfluenceTrustedApplication

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

public class ConfluenceTrustedApplication
extends java.lang.Object


Constructor Summary
ConfluenceTrustedApplication()
           
 
Method Summary
 void addRestriction(TrustedApplicationRestriction restriction)
           
 boolean equals(java.lang.Object o)
          Performs an equality check on the passed in object.
 long getId()
           
 java.util.Set<java.lang.String> getIpRestrictions()
           
 java.lang.String getName()
           
 AliasedKey getPublicKey()
           
 int getRequestTimeout()
           
 java.util.Set<TrustedApplicationRestriction> getRestrictions()
           
 java.util.Set<java.lang.String> getUrlRestrictions()
           
 int hashCode()
           
 boolean removeRestriction(TrustedApplicationRestriction restriction)
           
 void setId(long id)
           
 void setName(java.lang.String name)
           
 void setPublicKey(AliasedKey publicKey)
           
 void setRequestTimeout(int requestTimeout)
           
 void setRestrictions(java.util.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 java.lang.String getName()

setName

public void setName(java.lang.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 java.util.Set<TrustedApplicationRestriction> getRestrictions()

setRestrictions

public void setRestrictions(java.util.Set<TrustedApplicationRestriction> restrictions)

addRestriction

public void addRestriction(TrustedApplicationRestriction restriction)

removeRestriction

public boolean removeRestriction(TrustedApplicationRestriction restriction)

getUrlRestrictions

public java.util.Set<java.lang.String> getUrlRestrictions()

getIpRestrictions

public java.util.Set<java.lang.String> getIpRestrictions()

equals

public boolean equals(java.lang.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 java.lang.Object
Returns:
true if the passed in object is a ConfluenceTrustedApplication and is considered equal

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.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-2014 Atlassian. All Rights Reserved.