public class SystemUserCredential extends Object implements Credential
Modifier and Type | Field and Description |
---|---|
protected DataSource |
m_DataSource
The datasource.
|
protected String |
m_Password
The password.
|
protected Object |
m_ServiceToken
The service token.
|
Constructor and Description |
---|
SystemUserCredential()
Constructs a SystemUserCredential.
|
SystemUserCredential(DataSource dataSource)
Constructs a SystemUserCredential.
|
SystemUserCredential(Object serviceToken)
Constructs a SystemUserCredential.
|
SystemUserCredential(String password)
Constructs a SystemUserCredential.
|
Modifier and Type | Method and Description |
---|---|
DataSource |
getDataSource()
Gets the DataSource.
|
String |
getName()
Gets the name of the user.
|
String |
getPassword()
Gets the password.
|
Object |
getServiceToken()
Gets the service token.
|
boolean |
isDataSourceBased()
Returns true if the Credentiual is based on a DataSource.
|
boolean |
isSchemaPasswordBased()
Returns true if the Credentiual is based on schema password.
|
boolean |
isServiceTokenBased()
Returns true if the Credentiual is based on a service token.
|
void |
setName(String name)
Sets the name of the user.
|
protected String m_Password
protected DataSource m_DataSource
protected Object m_ServiceToken
public SystemUserCredential()
public SystemUserCredential(String password) throws IfsException
password
- the passwordIfsException
- if the operation failspublic SystemUserCredential(DataSource dataSource) throws IfsException
dataSource
- the DataSourceIfsException
- if the operation failspublic SystemUserCredential(Object serviceToken) throws IfsException
serviceToken
- the serviceTokenIfsException
- if the operation failspublic String getPassword()
public DataSource getDataSource()
public Object getServiceToken()
public boolean isSchemaPasswordBased()
public boolean isDataSourceBased() throws IfsException
IfsException
public boolean isServiceTokenBased() throws IfsException
IfsException
public String getName() throws IfsException
Credential
getName
in interface Credential
IfsException
- (IFS-10187) if the operation failspublic void setName(String name) throws IfsException
Credential
setName
in interface Credential
name
- the name of the userIfsException
- (IFS-10188) if the operation failsCopyright © 2023. All rights reserved.