java命名空间javax.security.auth.callback类confirmationcallback的类成员方法:
error定义及介绍
本文导语:
error
public static final int error
error 消息类型。
另请参见:常量字段值
confirmationcallback
public confirmationcallback(int messagetype,
int optiontype,
int defaultoption)
构造一个带有消息类型、选项...
public static final int error
- error 消息类型。
- 另请参见:
- 常量字段值
confirmationcallback
public confirmationcallback(int messagetype,
int optiontype,
int defaultoption)
- 构造一个带有消息类型、选项类型和默认选项的
confirmationcallback。
如果底层安全服务需要 yes/no、 yes/no/cancel 或 ok/cancel 确认信息,则它们使用此构造方法。
- 参数:
messagetype - 消息类型(information、warning 或 error)。 optiontype - 选项类型(yes_no_option、yes_no_cancel_option 或 ok_cancel_option)。 defaultoption - 从提供的 optiontype(yes、no、cancel 或 ok)得出的默认选项。
- 抛出:
illegalargumentexception - 如果 messagetype 不是 information、warning 或 error,如果 optiontype 不是 yes_no_option、yes_no_cancel_option 或 ok_cancel_option,或者 defaultoption 不与 optiontype 中的某个选项对应。