com.sun.rpc

Class CredGss


public class CredGss
extends Cred

The credential class for the RPCSEC_GSS security flavor.
Author:
Lin Ling
See Also:
Cred

Field Summary

static int
RPCSEC_GSS
static int
RPCSEC_GSS_CONTINUE_INIT
static int
RPCSEC_GSS_DATA
static int
RPCSEC_GSS_DESTROY
static int
RPCSEC_GSS_INIT
static int
RPCSEC_GSS_VERS_1
int
serviceType

Fields inherited from class com.sun.rpc.Cred

SVC_INTEGRITY, SVC_NONE, SVC_PRIVACY

Constructor Summary

CredGss(String svcName, String mech, int svcType, int qop_num)
Constructor creates an instance of RPCSEC_GSS credential with given service name, mechanism, service type and qop number.
CredGss(String svcName, Oid mech, int svcType, int qop_num)
Constructor creates an instance of RPCSEC_GSS credential with given service name, mechanism, service type and qop number.

Method Summary

void
getCred(Xdr x)
Get creds from an XDR buffer

Field Details

RPCSEC_GSS

public static final int RPCSEC_GSS
Field Value:
6

RPCSEC_GSS_CONTINUE_INIT

public static final int RPCSEC_GSS_CONTINUE_INIT
Field Value:
2

RPCSEC_GSS_DATA

public static final int RPCSEC_GSS_DATA
Field Value:
0

RPCSEC_GSS_DESTROY

public static final int RPCSEC_GSS_DESTROY
Field Value:
3

RPCSEC_GSS_INIT

public static final int RPCSEC_GSS_INIT
Field Value:
1

RPCSEC_GSS_VERS_1

public static final int RPCSEC_GSS_VERS_1
Field Value:
1

serviceType

public int serviceType

Constructor Details

CredGss

public CredGss(String svcName,
               String mech,
               int svcType,
               int qop_num)
            throws IOException
Constructor creates an instance of RPCSEC_GSS credential with given service name, mechanism, service type and qop number.
Parameters:
svcName - the target service name
mech - the string format of mech oid; e.g. "1.2.3.4.5"
svcType - none, integrity or privacy
qop_num - the number of quality protection

CredGss

public CredGss(String svcName,
               Oid mech,
               int svcType,
               int qop_num)
Constructor creates an instance of RPCSEC_GSS credential with given service name, mechanism, service type and qop number.
Parameters:
svcName - the target service name
mech - the GSS Oid object of the mech
svcType - none, integrity or privacy
qop_num - the number of quality protection

Method Details

getCred

public void getCred(Xdr x)
Get creds from an XDR buffer