• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java ClientVersionInfo类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中net.kano.joscar.snaccmd.auth.ClientVersionInfo的典型用法代码示例。如果您正苦于以下问题:Java ClientVersionInfo类的具体用法?Java ClientVersionInfo怎么用?Java ClientVersionInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

ClientVersionInfo类属于net.kano.joscar.snaccmd.auth包,在下文中一共展示了ClientVersionInfo类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: LoginICQFlapCmd

点赞 2

import net.kano.joscar.snaccmd.auth.ClientVersionInfo; //导入依赖的package包/类
/**
 * Creates a new <code>LoginCookieCmd</code> with the given FLAP protocol
 * version and with the given cookie.
 *
 * @param version the FLAP protocol version in use
 * @param cookie a login "cookie" provided by another OSCAR connection
 * @param uin UIN of the username logging in
 * @param pass Password of the user logging in
 * @param clVersion version for the ICQ client
 * @param locale Locale for the connection.
 */
public LoginICQFlapCmd(long version, ByteBlock cookie, String uin, String pass, ClientVersionInfo clVersion, Locale locale) {
    super(CHANNEL_LOGIN);

    DefensiveTools.checkRange(version, "version", 0);

    this.version = version;
    this.cookie = cookie;
    this.uin = uin;
    this.clVersion = clVersion;
    this.locale = locale;
    this.encryptedPass = ByteBlock.wrap(encryptICQPassword(pass));
    Log.debug("Non-encrypted password is "+pass+", Encrypted password is "+encryptedPass);
}
 

开发者ID:igniterealtime,
项目名称:Openfire,
代码行数:25,
代码来源:LoginICQFlapCmd.java

示例2: getVersionInfo

点赞 1

import net.kano.joscar.snaccmd.auth.ClientVersionInfo; //导入依赖的package包/类
/**
 * Returns the user's client information block.
 *
 * @return the user's client version information
 */
public final ClientVersionInfo getVersionInfo() { return clVersion; }
 

开发者ID:igniterealtime,
项目名称:Openfire,
代码行数:7,
代码来源:LoginICQFlapCmd.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)