public abstract class UIServices extends Object
Modifier and Type | Class and Description |
---|---|
static class |
UIServices.AuthenticationInfo
Authentication information returned from an authentication prompt request.
|
static class |
UIServices.TrustInfo
Trust information returned from a trust request
|
Modifier and Type | Field and Description |
---|---|
static UIServices.AuthenticationInfo |
AUTHENTICATION_PROMPT_CANCELED
This constant may be returned by the
getUsernamePassword methods if the user
explicitly canceled the authentication prompt. |
static String |
SERVICE_NAME
Service name constant for the UI service.
|
Constructor and Description |
---|
UIServices() |
Modifier and Type | Method and Description |
---|---|
abstract UIServices.TrustInfo |
getTrustInfo(Certificate[][] untrustedChain,
String[] unsignedDetail)
Opens a UI prompt to capture information about trusted content.
|
abstract UIServices.AuthenticationInfo |
getUsernamePassword(String location)
Opens a UI prompt for authentication details
|
abstract UIServices.AuthenticationInfo |
getUsernamePassword(String location,
UIServices.AuthenticationInfo previousInfo)
Opens a UI prompt for authentication details when cached or remembered details
where not accepted.
|
void |
showInformationMessage(String title,
String text,
String linkText)
Shows the given message to the user.
|
public static final String SERVICE_NAME
public static final UIServices.AuthenticationInfo AUTHENTICATION_PROMPT_CANCELED
getUsernamePassword
methods if the user
explicitly canceled the authentication prompt.public abstract UIServices.AuthenticationInfo getUsernamePassword(String location)
location
- - the location requiring login details, may be null
.null
, or AUTHENTICATION_PROMPT_CANCELED
public abstract UIServices.AuthenticationInfo getUsernamePassword(String location, UIServices.AuthenticationInfo previousInfo)
location
- the location requiring login detailspreviousInfo
- - the previously used authentication details - may not be null.null
, or AUTHENTICATION_PROMPT_CANCELED
public abstract UIServices.TrustInfo getTrustInfo(Certificate[][] untrustedChain, String[] unsignedDetail)
untrustedChain
- - an array of certificate chains for which there is no current trust anchor. May be
null
, which means there are no untrusted certificate chains.unsignedDetail
- - an array of strings, where each String describes content that is not signed.
May be null
, which means there is no unsigned contentpublic void showInformationMessage(String title, String text, String linkText)
title
- - a title if the message is shown in a dialogtext
- - the message to be shownlinkText
- - an optional text to be rendered as hyperlink on the UI
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.