Modifier and Type | Field and Description |
---|---|
private static int |
AP1P_VERSION |
private static int |
AP1Q_VERSION |
private static int |
AP2P_VERSION |
private static int |
AP2Q_VERSION |
(package private) static java.lang.String |
DEFAULT_PASSWORD |
private static int |
ITERATIONS |
(package private) atncredtd |
mycred |
(package private) static int |
RESULT_FAIL |
(package private) static int |
RESULT_OK |
private static int |
SALT_SIZE |
ATNTDOM_TOKEN_TYPE_1, ATNTDOM_TOKEN_TYPE_2, ATNTDOM_TOKEN_TYPE_3, ATNTDOM_TOKEN_TYPE_4, ATNTDOM_VERSION, GSS_C_AF_INET, GSS_NAME_OBJID_SIZE, MAXCHAN_LEN, MAXDOMAIN_LEN, MAXNAME_LEN
Constructor and Description |
---|
atntd() |
atntd(TPINIT tpinfo,
int timestamp) |
Modifier and Type | Method and Description |
---|---|
int |
getActualPDUSendSize() |
int |
getEstimatedPDURecvSize(atncontext context) |
int |
getEstimatedPDUSendSize(atncontext context) |
int |
gssAcceptSecContext(atncontext context,
byte[] input_token,
int input_token_size,
byte[] output_token) |
atncred |
gssAcquireCred(java.lang.String desired_name) |
atncred |
gssAcquireCred(java.lang.String desired_name,
byte[] identity_proof) |
atncred |
gssAcquireCred(java.lang.String desired_name,
java.lang.String identity_proof) |
atncontext |
gssGetContext(atncred claimant_cred_handle,
java.lang.String target_name) |
int |
gssInitSecContext(atncontext context,
byte[] input_token,
int input_token_size,
byte[] output_token) |
private byte |
random_transform(byte b) |
private int |
roundup4(int i) |
int |
setAcceptorAddr(byte[] acceptor) |
int |
setApplicationData(byte[] application) |
void |
setApplicationPasswd(java.lang.String app_pw) |
void |
setDesiredName(java.lang.String desired) |
int |
setInitiatorAddr(byte[] initiator) |
void |
setLocalPasswd(java.lang.String passwd) |
void |
setMachineType(java.lang.String mtype) |
void |
setRemotePasswd(java.lang.String passwd) |
int |
setSecurityType(int sec_type) |
void |
setSrcName(java.lang.String src) |
void |
setTargetName(java.lang.String target) |
atncredtd mycred
private static final int AP1Q_VERSION
private static final int AP1P_VERSION
private static final int AP2Q_VERSION
private static final int AP2P_VERSION
private static final int SALT_SIZE
private static final int ITERATIONS
static final java.lang.String DEFAULT_PASSWORD
static final int RESULT_OK
static final int RESULT_FAIL
public atntd()
public atntd(TPINIT tpinfo, int timestamp)
public atncred gssAcquireCred(java.lang.String desired_name) throws EngineSecError
gssAcquireCred
in interface atn
desired_name
- Is the name of the person I am attempting to log in
asEngineSecError
- on failurespublic atncred gssAcquireCred(java.lang.String desired_name, java.lang.String identity_proof) throws EngineSecError
gssAcquireCred
in interface atn
desired_name
- Is the name of the person I am attempting to log in
asidentity_proof
- Is the string password of that personEngineSecError
- on failurespublic atncred gssAcquireCred(java.lang.String desired_name, byte[] identity_proof) throws EngineSecError
gssAcquireCred
in interface atn
desired_name
- Is the name of the person I am attempting to log in
asidentity_proof
- Is the binary proof material of that userEngineSecError
- on failuresprivate byte random_transform(byte b)
private int roundup4(int i)
public atncontext gssGetContext(atncred claimant_cred_handle, java.lang.String target_name) throws EngineSecError
gssGetContext
in interface atn
claimant_cred_handle
- The credential of the user attempting
to contact the remote systemtarget_name
- The name of the person we are attempting to
contactEngineSecError
- on errorspublic int gssInitSecContext(atncontext context, byte[] input_token, int input_token_size, byte[] output_token) throws EngineSecError
gssInitSecContext
in interface atn
context
- The security context of this communicationinput_token
- The token recieved from the remote site, or null
if this is the first call to this functioninput_token_size
- The amount of data in input_token
to be considered as part of the tokenoutput_token
- Space to fill in for the output tokenEngineSecError
- if there is not enough space in the output tokenpublic int gssAcceptSecContext(atncontext context, byte[] input_token, int input_token_size, byte[] output_token) throws EngineSecError
gssAcceptSecContext
in interface atn
context
- The security context fo this communicationinput_token
- The token received from the remote site, or nul
if this is the first call to this methodinput_token_size
- The amount of data in input_token
to be considered as part of the tokenoutput_token
- Space to fill in for the output tokenEngineSecError
- if there is no enough space in the output tokenpublic int getActualPDUSendSize()
getActualPDUSendSize
in interface atn
public int getEstimatedPDUSendSize(atncontext context)
getEstimatedPDUSendSize
in interface atn
context
- The security context of this communicationpublic int getEstimatedPDURecvSize(atncontext context)
getEstimatedPDURecvSize
in interface atn
context
- The security context of this communicationpublic int setSecurityType(int sec_type)
setSecurityType
in interface atn
sec_type
- The type of security configured in configuration filepublic void setSrcName(java.lang.String src)
setSrcName
in interface atn
src
- The security context of this communicationpublic void setDesiredName(java.lang.String desired)
setDesiredName
in interface atn
desired
- The principal name for this domain sessionpublic void setTargetName(java.lang.String target)
setTargetName
in interface atn
target
- The principal name to represent remote domainpublic void setApplicationPasswd(java.lang.String app_pw)
setApplicationPasswd
in interface atn
app_pw
- The the password for current applicationpublic void setLocalPasswd(java.lang.String passwd)
setLocalPasswd
in interface atn
passwd
- The passwordpublic void setRemotePasswd(java.lang.String passwd)
setRemotePasswd
in interface atn
context
- The password for the current domain sessionpublic int setInitiatorAddr(byte[] initiator)
setInitiatorAddr
in interface atn
initiator
- The Inet address for the initiatorpublic int setAcceptorAddr(byte[] acceptor)
setAcceptorAddr
in interface atn
initiator
- The Inet address for the acceptorpublic int setApplicationData(byte[] application)
setApplicationData
in interface atn
application
- The byte[] data for the applicationpublic void setMachineType(java.lang.String mtype)
setMachineType
in interface atn
mtype
- The name of the machine type