Class ConfluenceTrustedApplication
java.lang.Object
com.atlassian.confluence.security.trust.ConfluenceTrustedApplication
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRestriction(TrustedApplicationRestriction restriction) booleanPerforms an equality check on the passed in object.longgetId()getName()intinthashCode()booleanremoveRestriction(TrustedApplicationRestriction restriction) voidsetId(long id) voidvoidsetPublicKey(AliasedKey publicKey) voidsetRequestTimeout(int requestTimeout) voidsetRestrictions(Set<TrustedApplicationRestriction> restrictions) final com.atlassian.security.auth.trustedapps.TrustedApplicationtoDefaultTrustedApplication(@NonNull com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider) Create an instance ofTrustedApplicationbased on this instance ofConfluenceTrustedApplication.
-
Constructor Details
-
ConfluenceTrustedApplication
public ConfluenceTrustedApplication()
-
-
Method Details
-
getId
public long getId() -
setId
public void setId(long id) -
getName
-
setName
-
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
-
setPublicKey
-
getRestrictions
-
setRestrictions
-
addRestriction
-
removeRestriction
-
getUrlRestrictions
-
getIpRestrictions
-
equals
Performs an equality check on the passed in object. TrustedApplications are considered equal if their id's are equal. -
hashCode
public int hashCode() -
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.
-