Class ConfluenceTrustedApplication
java.lang.Object
com.atlassian.confluence.security.trust.ConfluenceTrustedApplication
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRestriction
(TrustedApplicationRestriction restriction) boolean
Performs an equality check on the passed in object.long
getId()
getName()
int
int
hashCode()
boolean
removeRestriction
(TrustedApplicationRestriction restriction) void
setId
(long id) void
void
setPublicKey
(AliasedKey publicKey) void
setRequestTimeout
(int requestTimeout) void
setRestrictions
(Set<TrustedApplicationRestriction> restrictions) final com.atlassian.security.auth.trustedapps.TrustedApplication
toDefaultTrustedApplication
(@NonNull com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider) Create an instance ofTrustedApplication
based 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 ofTrustedApplication
based on this instance ofConfluenceTrustedApplication
.- Parameters:
encryptionProvider
- TheEncryptionProvider
to be used by theTrustedApplication
. Cannot be null.- Returns:
TrustedApplication
based onthis
.
-