com.atlassian.confluence.security.trust
Class ConfluenceTrustedApplication
java.lang.Object
com.atlassian.confluence.security.trust.ConfluenceTrustedApplication
public class ConfluenceTrustedApplication
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ConfluenceTrustedApplication
public ConfluenceTrustedApplication()
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.