public class

SingleSignOnService

extends AppsPropertyService
java.lang.Object
   ↳ com.google.gdata.client.Service
     ↳ com.google.gdata.client.GoogleService
       ↳ com.google.gdata.client.appsforyourdomain.AppsForYourDomainService
         ↳ com.google.gdata.client.appsforyourdomain.AppsPropertyService
           ↳ com.google.gdata.client.appsforyourdomain.adminsettings.SingleSignOnService

Class Overview

Specialization of AppsPropertyService for managing SSO related settings of a domain.

Summary

[Expand]
Inherited Constants
From class com.google.gdata.client.appsforyourdomain.AppsForYourDomainService
Fields
protected String domainUrlBase
protected String ssoSettingsUrl
protected String ssoSigningKeyUrl
[Expand]
Inherited Fields
From class com.google.gdata.client.GoogleService
From class com.google.gdata.client.Service
Public Constructors
SingleSignOnService(String domain, String applicationName)
Parameterized constructor to setup a Service object which can be used to initialize the service without obtaining a token.
SingleSignOnService(String adminEmail, String password, String domain, String applicationName)
Parameterized constructor for service authentication.
Public Methods
GenericEntry getSsoSettings()
Retrieves the SSO properties configured for the domain.
GenericEntry getSsoSigningKey()
Retrieves the certificate uploaded to the domain for SSO.
GenericEntry updateSSOSettings(GenericEntry entry)
Updates the SSO properties with the GenericEntry values.
GenericEntry updateSsoSigningKey(String base64EncodedKey)
Updates the public key used for SSO.
[Expand]
Inherited Methods
From class com.google.gdata.client.appsforyourdomain.AppsForYourDomainService
From class com.google.gdata.client.GoogleService
From class com.google.gdata.client.Service
From class java.lang.Object
From interface com.google.gdata.client.AuthTokenFactory.TokenListener

Fields

protected String domainUrlBase

protected String ssoSettingsUrl

protected String ssoSigningKeyUrl

Public Constructors

public SingleSignOnService (String domain, String applicationName)

Parameterized constructor to setup a Service object which can be used to initialize the service without obtaining a token. The user should explicitly authorize the service by calling either setUserCredentials or setUserToken when using this constructor.

Parameters
domain Domain being configured
applicationName Application name consuming the API

public SingleSignOnService (String adminEmail, String password, String domain, String applicationName)

Parameterized constructor for service authentication.

Parameters
adminEmail The email id of the administrator.
password The administrator password.
domain The domain name to be configured.
applicationName The calling client application name.for e.g. mycompany-java
Throws
AuthenticationException if an authentication related error occurs.

Public Methods

public GenericEntry getSsoSettings ()

Retrieves the SSO properties configured for the domain.

Returns
  • a GenericEntry object with all the SSO properties.
Throws
AppsForYourDomainException if an Apps for your domain API error occurred.
IOException if an error occurs while communicating with the GData service.
ServiceException if the fetch request failed due to system error.

public GenericEntry getSsoSigningKey ()

Retrieves the certificate uploaded to the domain for SSO.

Returns
  • A GenericEntry with one or more of the following properties depending on the key format: {exponent, yValue, format, modulus, algorithm}
Throws
AppsForYourDomainException if an Apps for your domain API error occurred.
IOException if an error occurs while communicating with the GData service.
ServiceException if the fetch request failed due to system error.

public GenericEntry updateSSOSettings (GenericEntry entry)

Updates the SSO properties with the GenericEntry values.

Parameters
entry A GenericEntry object with SSO properties
Returns
  • a GenericEntry with the updated properties
Throws
IOException if an error occurs while communicating with the GData service.
AppsForYourDomainException if an Apps for your domain API error occurred.
ServiceException if the insert request failed due to system error.

public GenericEntry updateSsoSigningKey (String base64EncodedKey)

Updates the public key used for SSO.

Parameters
base64EncodedKey
Returns
  • a GenericEntry object with the updated SSO signing key.
Throws
IOException if an error occurs while communicating with the GData service.
AppsForYourDomainException if an Apps for your domain API error occurred.
ServiceException if the fetch request failed due to system error.