com.atlassian.jira.security.auth.trustedapps
Class TrustedApplicationBuilder

java.lang.Object
  extended by com.atlassian.jira.security.auth.trustedapps.TrustedApplicationBuilder

public class TrustedApplicationBuilder
extends Object

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

Since:
v3.12

Constructor Summary
TrustedApplicationBuilder()
           
 
Method Summary
 String getApplicationId()
           
 long getId()
           
 String getIpMatch()
           
 String getName()
           
 String getPublicKey()
           
 long getTimeout()
           
 String getUrlMatch()
           
 TrustedApplicationBuilder set(com.atlassian.security.auth.trustedapps.Application app)
           
 TrustedApplicationBuilder set(com.atlassian.security.auth.trustedapps.RequestConditions requestConditions)
           
 TrustedApplicationBuilder set(TrustedApplicationInfo info)
           
 TrustedApplicationBuilder setApplicationId(String applicationId)
           
 TrustedApplicationBuilder setCreated(AuditLog created)
           
 TrustedApplicationBuilder setCreated(Date created)
           
 TrustedApplicationBuilder setId(long id)
           
 TrustedApplicationBuilder setIpMatch(Iterable<String> ipMatch)
           
 TrustedApplicationBuilder setIpMatch(String ipMatch)
           
 TrustedApplicationBuilder setName(String name)
           
 TrustedApplicationBuilder setPublicKey(PublicKey publicKey)
           
 TrustedApplicationBuilder setPublicKey(String publicKey)
           
 TrustedApplicationBuilder setTimeout(long timeout)
           
 TrustedApplicationBuilder setUrlMatch(String urlMatch)
           
 com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData toData()
           
 TrustedApplicationInfo toInfo()
           
 String toQueryString()
          Transforms the data held in the builder into a query string representation for use with URLs.
 SimpleTrustedApplication toSimple()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrustedApplicationBuilder

public TrustedApplicationBuilder()
Method Detail

set

public TrustedApplicationBuilder set(TrustedApplicationInfo info)

set

public TrustedApplicationBuilder set(com.atlassian.security.auth.trustedapps.Application app)

set

public TrustedApplicationBuilder set(com.atlassian.security.auth.trustedapps.RequestConditions requestConditions)

getId

public long getId()

setId

public TrustedApplicationBuilder setId(long id)

getApplicationId

public String getApplicationId()

setApplicationId

public TrustedApplicationBuilder setApplicationId(String applicationId)

getTimeout

public long getTimeout()

setTimeout

public TrustedApplicationBuilder setTimeout(long timeout)

getPublicKey

public String getPublicKey()

setPublicKey

public TrustedApplicationBuilder setPublicKey(PublicKey publicKey)

setPublicKey

public TrustedApplicationBuilder setPublicKey(String publicKey)

getName

public String getName()

setName

public TrustedApplicationBuilder setName(String name)

getIpMatch

public String getIpMatch()

setIpMatch

public TrustedApplicationBuilder setIpMatch(String ipMatch)

setIpMatch

public TrustedApplicationBuilder setIpMatch(Iterable<String> ipMatch)

getUrlMatch

public String getUrlMatch()

setUrlMatch

public TrustedApplicationBuilder setUrlMatch(String urlMatch)

setCreated

public TrustedApplicationBuilder setCreated(Date created)

setCreated

public TrustedApplicationBuilder setCreated(AuditLog created)

toInfo

public TrustedApplicationInfo toInfo()

toSimple

public SimpleTrustedApplication toSimple()

toData

public com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData toData()

toQueryString

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


Copyright © 2002-2013 Atlassian. All Rights Reserved.