Class ConfluenceTrustedApplication
- java.lang.Object
-
- com.atlassian.confluence.security.trust.ConfluenceTrustedApplication
-
public class ConfluenceTrustedApplication extends Object
-
-
Constructor Summary
Constructors Constructor Description ConfluenceTrustedApplication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRestriction(TrustedApplicationRestriction restriction)booleanequals(Object o)Performs an equality check on the passed in object.longgetId()Set<String>getIpRestrictions()StringgetName()AliasedKeygetPublicKey()intgetRequestTimeout()Set<TrustedApplicationRestriction>getRestrictions()Set<String>getUrlRestrictions()inthashCode()booleanremoveRestriction(TrustedApplicationRestriction restriction)voidsetId(long id)voidsetName(String name)voidsetPublicKey(AliasedKey publicKey)voidsetRequestTimeout(int requestTimeout)voidsetRestrictions(Set<TrustedApplicationRestriction> restrictions)com.atlassian.security.auth.trustedapps.TrustedApplicationtoDefaultTrustedApplication(@NonNull com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider)Create an instance ofTrustedApplicationbased on this instance ofConfluenceTrustedApplication.
-
-
-
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)
-
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.
-
toDefaultTrustedApplication
public final com.atlassian.security.auth.trustedapps.TrustedApplication toDefaultTrustedApplication(@NonNull com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider)
Create an instance ofTrustedApplicationbased on this instance ofConfluenceTrustedApplication.- Parameters:
encryptionProvider- TheEncryptionProviderto be used by theTrustedApplication. Cannot be null.- Returns:
TrustedApplicationbased onthis.
-
-