public class

TrustedApplicationBuilder

extends Object
java.lang.Object
   ↳ com.atlassian.jira.security.auth.trustedapps.TrustedApplicationBuilder

Class Overview

Builder pattern class for constructing and transforming our various data and business objects.

Summary

Public Constructors
TrustedApplicationBuilder()
Public Methods
String getApplicationId()
long getId()
String getIpMatch()
String getName()
String getPublicKey()
long getTimeout()
String getUrlMatch()
TrustedApplicationBuilder set(RequestConditions requestConditions)
TrustedApplicationBuilder set(TrustedApplicationInfo info)
TrustedApplicationBuilder set(Application app)
TrustedApplicationBuilder setApplicationId(String applicationId)
TrustedApplicationBuilder setCreated(AuditLog created)
TrustedApplicationBuilder setCreated(Date created)
TrustedApplicationBuilder setId(long id)
TrustedApplicationBuilder setIpMatch(String ipMatch)
TrustedApplicationBuilder setIpMatch(Iterable<String> ipMatch)
TrustedApplicationBuilder setName(String name)
TrustedApplicationBuilder setPublicKey(String publicKey)
TrustedApplicationBuilder setPublicKey(PublicKey publicKey)
TrustedApplicationBuilder setTimeout(long timeout)
TrustedApplicationBuilder setUrlMatch(String urlMatch)
TrustedApplicationData toData()
TrustedApplicationInfo toInfo()
String toQueryString()
Transforms the data held in the builder into a query string representation for use with URLs.
SimpleTrustedApplication toSimple()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TrustedApplicationBuilder ()

Public Methods

public String getApplicationId ()

public long getId ()

public String getIpMatch ()

public String getName ()

public String getPublicKey ()

public long getTimeout ()

public String getUrlMatch ()

public TrustedApplicationBuilder set (RequestConditions requestConditions)

public TrustedApplicationBuilder set (Application app)

public TrustedApplicationBuilder setApplicationId (String applicationId)

public TrustedApplicationBuilder setCreated (AuditLog created)

public TrustedApplicationBuilder setCreated (Date created)

public TrustedApplicationBuilder setId (long id)

public TrustedApplicationBuilder setIpMatch (String ipMatch)

public TrustedApplicationBuilder setIpMatch (Iterable<String> ipMatch)

public TrustedApplicationBuilder setName (String name)

public TrustedApplicationBuilder setPublicKey (String publicKey)

public TrustedApplicationBuilder setPublicKey (PublicKey publicKey)

public TrustedApplicationBuilder setTimeout (long timeout)

public TrustedApplicationBuilder setUrlMatch (String urlMatch)

public TrustedApplicationData toData ()

public TrustedApplicationInfo toInfo ()

public String 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

public SimpleTrustedApplication toSimple ()