|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ifs.common.ChallengeResponseCredential
A ChallengeResponseCredential encapsulates a name, challenge, and response for presentation to a CredentialManager to authenticate a user, based on the SMB authentication mechanism.
Field Summary | |
static int |
TYPE_LMSESSIONKEY
Indicates an SMB LM session key type of response. |
static int |
TYPE_NTSESSIONKEY
Indicates an SMB NT session key type of response. |
static int |
TYPE_UNKNOWN
Indicates an unknown type of response. |
Constructor Summary | |
ChallengeResponseCredential()
Constructs a ChallengeResponseCredential. |
|
ChallengeResponseCredential(java.lang.String name,
byte[] challenge,
byte[] response,
int type)
Constructs a ChallengeResponseCredential. |
Method Summary | |
byte[] |
getChallenge()
Gets the challenge. |
java.lang.String |
getName()
Gets the name of the user. |
byte[] |
getResponse()
Gets the response. |
int |
getType()
Gets the type of the response. |
void |
setChallenge(byte[] challenge)
Sets the challenge. |
void |
setName(java.lang.String name)
Sets the name of the user. |
void |
setResponse(byte[] response)
Sets the response. |
void |
setType(int type)
Sets the type of the response. |
Field Detail |
public static final int TYPE_UNKNOWN
public static final int TYPE_NTSESSIONKEY
public static final int TYPE_LMSESSIONKEY
Constructor Detail |
public ChallengeResponseCredential() throws IfsException
IfsException
- if the operation failspublic ChallengeResponseCredential(java.lang.String name, byte[] challenge, byte[] response, int type) throws IfsException
name
- the name of the userchallenge
- the 8-byte challengeresponse
- the 24-byte responsetype
- the type of the responseIfsException
- if the operation failsMethod Detail |
public java.lang.String getName() throws IfsException
getName
in interface Credential
IfsException
- if the operation failspublic void setName(java.lang.String name) throws IfsException
name
- the name of the userIfsException
- if the operation failspublic byte[] getChallenge() throws IfsException
IfsException
- if the operation failspublic void setChallenge(byte[] challenge) throws IfsException
challenge
- the 8-byte challengeIfsException
- if the operation failspublic byte[] getResponse() throws IfsException
IfsException
- if the operation failspublic void setResponse(byte[] response) throws IfsException
response
- the 24-byte responseIfsException
- if the operation failspublic int getType() throws IfsException
IfsException
- if the operation failspublic void setType(int type) throws IfsException
type
- the type; must be either
TYPE_NTSESSIONKEY
or
TYPE_LMSESSIONKEY
IfsException
- if the operation fails
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |