public class ServiceTypeManager extends Object
ServiceTypeManager
provides methods
to determine the services that have policy privileges and
and interfaces to instantiate ServiceType
objects. This is a singleton class.Constructor and Description |
---|
ServiceTypeManager(SSOToken token)
Constructor to obtain an instance of
ServiceTypeManager
using single-sign-on token SSOToken . |
Modifier and Type | Method and Description |
---|---|
static int |
getPolicyServiceRevisionNumber()
Returns service revision number of policy service
|
ServiceType |
getServiceType(String serviceTypeName)
Returns a
ServiceType object for the given
service name. |
Set |
getServiceTypeNames()
Returns a set of service names that have policy privileges.
|
public ServiceTypeManager(SSOToken token) throws SSOException
ServiceTypeManager
using single-sign-on token SSOToken
. If the
single-sign-on token is invalid or has expired an
SSOException
will be thrown.token
- single-sign-on token of the userSSOException
- single-sign-on token has either expired or
is invalidpublic Set getServiceTypeNames() throws SSOException, NoPermissionException
SSOException
- single-sign-on token has either expired
or is invalidNoPermissionException
- user does not have privileges
to access service namespublic ServiceType getServiceType(String serviceTypeName) throws SSOException, NameNotFoundException
ServiceType
object for the given
service name. If the service does not exist, the exception
NameNotFoundException
is thrown.serviceTypeName
- name of the serviceServiceType
object for the given service nameSSOException
- single-sign-on token has either expired
or is invalidNameNotFoundException
- service for the given
serviceTypeName
does not existpublic static int getPolicyServiceRevisionNumber() throws PolicyException, SSOException, SMSException
PolicyException
SSOException
SMSException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.