Class TrustedApplicationBuilder
java.lang.Object
com.atlassian.jira.security.auth.trustedapps.TrustedApplicationBuilder
Builder pattern class for constructing and transforming our various data and business objects.
- Since:
- v3.12
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getId()
getName()
long
set
(TrustedApplicationInfo info) set
(com.atlassian.security.auth.trustedapps.Application app) set
(com.atlassian.security.auth.trustedapps.RequestConditions requestConditions) setApplicationId
(String applicationId) setCreated
(AuditLog created) setCreated
(Date created) setId
(long id) setIpMatch
(Iterable<String> ipMatch) setIpMatch
(String ipMatch) setPublicKey
(String publicKey) setPublicKey
(PublicKey publicKey) setTimeout
(long timeout) setUrlMatch
(String urlMatch) com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData
toData()
toInfo()
Transforms the data held in the builder into a query string representation for use with URLs.toSimple()
-
Constructor Details
-
TrustedApplicationBuilder
public TrustedApplicationBuilder()
-
-
Method Details
-
set
-
set
-
set
public TrustedApplicationBuilder set(com.atlassian.security.auth.trustedapps.RequestConditions requestConditions) -
getId
public long getId() -
setId
-
getApplicationId
-
setApplicationId
-
getTimeout
public long getTimeout() -
setTimeout
-
getPublicKey
-
setPublicKey
-
setPublicKey
-
getName
-
setName
-
getIpMatch
-
setIpMatch
-
setIpMatch
-
getUrlMatch
-
setUrlMatch
-
setCreated
-
setCreated
-
toInfo
-
toSimple
-
toData
public com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData toData() -
toQueryString
Transforms the data held in the builder into a query string representation for use with URLs. Values of individual fields are URL encoded. Note: the length of the returned String may exceed the maximum length for a GET URL.- Returns:
- the data as a query string
-