public class AuthenticateChapRequest extends Object
ChapMode.MD5
, ChapMode.MS_CHAP_LM
, ChapMode.MS_CHAP_NT
, ChapMode.MS_CHAP_V2
ChapMode.MD5
).
ChapMode.MD5
).
ChapMode.MS_CHAP_V2
. Set null for all other chapModes.
ChapMode.MD5
: MD5(chapId||Constructor and Description |
---|
AuthenticateChapRequest() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getChapChallenge()
Gets the chap challenge.
|
Byte |
getChapId()
Gets the chap id.
|
ChapMode |
getChapMode()
|
byte[] |
getChapResponse()
Gets the chap response.
|
String |
getLocale()
Gets the locale
|
byte[] |
getPeerChallenge()
Gets the peer challenge.
|
String |
getUserId()
Gets the user id.
|
void |
setChapChallenge(byte[] chapChallenge) |
void |
setChapId(Byte chapId)
This byte is used to match challenge and response.
|
void |
setChapMode(ChapMode chapMode) |
void |
setChapResponse(byte[] chapResponse) |
void |
setLocale(String locale) |
void |
setPeerChallenge(byte[] peerChallenge) |
void |
setUserId(String userId)
User id of the user, who wants to authenticate.
|
public ChapMode getChapMode()
public void setChapMode(ChapMode chapMode)
public String getUserId()
public void setUserId(String userId)
userId
- the userId to setpublic Byte getChapId()
public void setChapId(Byte chapId)
chapId
- the chapId to setpublic byte[] getChapChallenge()
public void setChapChallenge(byte[] chapChallenge)
chapChallenge:
- NAS created this challenge, which was then used during calculation of chap response. public byte[] getChapResponse()
public void setChapResponse(byte[] chapResponse)
public byte[] getPeerChallenge()
public void setPeerChallenge(byte[] peerChallenge)
peerChallenge:
- Optional value, which is used in case of ChapMode.MS_CHAP_V2
. ChapMode.MS_CHAP_V2
public String getLocale()
public void setLocale(String locale)
locale:
- String representation of a Locale (according to ISO 639-1). SSMS will display challenge texts according to this locale.Copyright © 2022 KOBIL Systems GmbH. All rights reserved.