com.atlassian.crowd.service.client
Class ClientPropertiesImpl

java.lang.Object
  extended by com.atlassian.crowd.service.client.ClientPropertiesImpl
All Implemented Interfaces:
ClientProperties

public class ClientPropertiesImpl
extends java.lang.Object
implements ClientProperties

This bean is a container for the application's crowd.properties.


Constructor Summary
protected ClientPropertiesImpl()
           
 
Method Summary
 ApplicationAuthenticationContext getApplicationAuthenticationContext()
          Returns the application authentication details.
 java.lang.String getApplicationAuthenticationURL()
          Returns the URL of the application's authentication page.
 java.lang.String getApplicationName()
          Returns the application name.
 java.lang.String getApplicationPassword()
          Returns the application password used for authenticating the application.
 java.lang.String getBaseURL()
          Returns the base URL of the client application.
 java.lang.String getCookieTokenKey()
          Returns the key of the token cookie.
 java.lang.String getHttpMaxConnections()
          Returns the maximum number of HTTP connections.
 java.lang.String getHttpProxyHost()
          Returns the HTTP proxy host.
 java.lang.String getHttpProxyPassword()
          Returns the HTTP proxy password.
 java.lang.String getHttpProxyPort()
          Returns the HTTP proxy port number.
 java.lang.String getHttpProxyUsername()
          Returns the HTTP proxy username.
 java.lang.String getHttpTimeout()
          Returns the HTTP connection timeout value in milliseconds.
 java.lang.String getSessionLastValidation()
          Returns the session attribute key of the last validation date.
 java.lang.String getSessionTokenKey()
          Returns the key of the session cookie.
 long getSessionValidationInterval()
          Returns how long the SSO session is valid for in minutes between session validation.
protected  java.lang.String loadAndLogPropertyString(java.util.Properties properties, java.lang.String propertyName)
           
static ClientPropertiesImpl newInstanceFromProperties(java.util.Properties properties)
           
static ClientPropertiesImpl newInstanceFromResourceLocator(ResourceLocator resourceLocator)
           
protected  void setBaseURL(java.lang.String baseURL)
           
 java.lang.String toString()
           
 void updateProperties(java.util.Properties properties)
          Updates all the properties with the new values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientPropertiesImpl

protected ClientPropertiesImpl()
Method Detail

updateProperties

public void updateProperties(java.util.Properties properties)
Description copied from interface: ClientProperties
Updates all the properties with the new values.

Specified by:
updateProperties in interface ClientProperties
Parameters:
properties - properties to update from

loadAndLogPropertyString

protected java.lang.String loadAndLogPropertyString(java.util.Properties properties,
                                                    java.lang.String propertyName)

getApplicationName

public java.lang.String getApplicationName()
Description copied from interface: ClientProperties
Returns the application name. Used in application authentication.

Specified by:
getApplicationName in interface ClientProperties
Returns:
application name.

getApplicationPassword

public java.lang.String getApplicationPassword()
Description copied from interface: ClientProperties
Returns the application password used for authenticating the application.

Specified by:
getApplicationPassword in interface ClientProperties
Returns:
application password.

getApplicationAuthenticationURL

public java.lang.String getApplicationAuthenticationURL()
Description copied from interface: ClientProperties
Returns the URL of the application's authentication page.

Specified by:
getApplicationAuthenticationURL in interface ClientProperties
Returns:
URL of the application's authentication page

getCookieTokenKey

public java.lang.String getCookieTokenKey()
Description copied from interface: ClientProperties
Returns the key of the token cookie.

Specified by:
getCookieTokenKey in interface ClientProperties
Returns:
key of the token cookie

getSessionTokenKey

public java.lang.String getSessionTokenKey()
Description copied from interface: ClientProperties
Returns the key of the session cookie.

Specified by:
getSessionTokenKey in interface ClientProperties
Returns:
key of the session cookie

getSessionLastValidation

public java.lang.String getSessionLastValidation()
Description copied from interface: ClientProperties
Returns the session attribute key of the last validation date.

Specified by:
getSessionLastValidation in interface ClientProperties
Returns:
the session attribute key of the last validation date

getSessionValidationInterval

public long getSessionValidationInterval()
Description copied from interface: ClientProperties
Returns how long the SSO session is valid for in minutes between session validation. If the session has not been validated for the specified amount of time, it is considered expired.

Specified by:
getSessionValidationInterval in interface ClientProperties
Returns:
how long the SSO session is valid for in minutes between session validation

getApplicationAuthenticationContext

public ApplicationAuthenticationContext getApplicationAuthenticationContext()
Description copied from interface: ClientProperties
Returns the application authentication details.

Specified by:
getApplicationAuthenticationContext in interface ClientProperties
Returns:
application authentication details

getHttpProxyPort

public java.lang.String getHttpProxyPort()
Description copied from interface: ClientProperties
Returns the HTTP proxy port number.

Specified by:
getHttpProxyPort in interface ClientProperties
Returns:
HTTP proxy port number

getHttpProxyHost

public java.lang.String getHttpProxyHost()
Description copied from interface: ClientProperties
Returns the HTTP proxy host.

Specified by:
getHttpProxyHost in interface ClientProperties
Returns:
HTTP proxy host

getHttpProxyUsername

public java.lang.String getHttpProxyUsername()
Description copied from interface: ClientProperties
Returns the HTTP proxy username.

Specified by:
getHttpProxyUsername in interface ClientProperties
Returns:
HTTP proxy username

getHttpProxyPassword

public java.lang.String getHttpProxyPassword()
Description copied from interface: ClientProperties
Returns the HTTP proxy password.

Specified by:
getHttpProxyPassword in interface ClientProperties
Returns:
HTTP proxy password

getHttpMaxConnections

public java.lang.String getHttpMaxConnections()
Description copied from interface: ClientProperties
Returns the maximum number of HTTP connections.

Specified by:
getHttpMaxConnections in interface ClientProperties
Returns:
maximum number of HTTP connections

getHttpTimeout

public java.lang.String getHttpTimeout()
Description copied from interface: ClientProperties
Returns the HTTP connection timeout value in milliseconds.

Specified by:
getHttpTimeout in interface ClientProperties
Returns:
HTTP connection timeout values in milliseconds

getBaseURL

public java.lang.String getBaseURL()
Description copied from interface: ClientProperties
Returns the base URL of the client application.

Specified by:
getBaseURL in interface ClientProperties
Returns:
base URL of the client application

setBaseURL

protected void setBaseURL(java.lang.String baseURL)

newInstanceFromResourceLocator

public static ClientPropertiesImpl newInstanceFromResourceLocator(ResourceLocator resourceLocator)

newInstanceFromProperties

public static ClientPropertiesImpl newInstanceFromProperties(java.util.Properties properties)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010 Atlassian. All Rights Reserved.