org.glite.voms.contact

Class VOMSProxyInit


public class VOMSProxyInit
extends java.lang.Object

This class implements the voms-proxy-init functionality.

Constructor Summary

VOMSProxyInit(String privateKeyPassword)

Method Summary

void
addVomsServer(VOMSServerInfo info)
protected VOMSResponse
contactServer(VOMSServerInfo sInfo, VOMSRequestOptions reqOptions)
int
getDelegationType()
protected UserCredentials
getGridProxy()
String
getPolicyType()
int
getProxyKeySize()
int
getProxyLifetime()
String
getProxyOutputFile()
int
getProxyType()
AttributeCertificate
getVomsAC(VOMSRequestOptions requestOptions)
String
getVomsData(VOMSRequestOptions requestOptions)
UserCredentials
getVomsProxy()
UserCredentials
getVomsProxy(Collection listOfReqOptions)
VOMSWarningMessage[]
getWarnings()
boolean
hasWarnings()
static VOMSProxyInit
instance()
static VOMSProxyInit
instance(String privateKeyPassword)
static VOMSProxyInit
instance(UserCredentials credentials)
void
setDelegationType(int delegationType)
void
setPolicyType(String policyType)
void
setProxyKeySize(int bits)
void
setProxyLifetime(int proxyLifetime)
void
setProxyOutputFile(String proxyOutputFile)
void
setProxyType(int proxyType)
void
validateACs(List ACs)

Constructor Details

VOMSProxyInit

public VOMSProxyInit(String privateKeyPassword)

Method Details

addVomsServer

public void addVomsServer(VOMSServerInfo info)

contactServer

protected VOMSResponse contactServer(VOMSServerInfo sInfo,
                                     VOMSRequestOptions reqOptions)

getDelegationType

public int getDelegationType()

getGridProxy

protected UserCredentials getGridProxy()

getPolicyType

public String getPolicyType()

getProxyKeySize

public int getProxyKeySize()

getProxyLifetime

public int getProxyLifetime()

getProxyOutputFile

public String getProxyOutputFile()

getProxyType

public int getProxyType()

getVomsAC

public AttributeCertificate getVomsAC(VOMSRequestOptions requestOptions)

getVomsData

public String getVomsData(VOMSRequestOptions requestOptions)

getVomsProxy

public UserCredentials getVomsProxy()

getVomsProxy

public UserCredentials getVomsProxy(Collection listOfReqOptions)

getWarnings

public VOMSWarningMessage[] getWarnings()

hasWarnings

public boolean hasWarnings()

instance

public static VOMSProxyInit instance()

instance

public static VOMSProxyInit instance(String privateKeyPassword)

instance

public static VOMSProxyInit instance(UserCredentials credentials)

setDelegationType

public void setDelegationType(int delegationType)

setPolicyType

public void setPolicyType(String policyType)

setProxyKeySize

public void setProxyKeySize(int bits)

setProxyLifetime

public void setProxyLifetime(int proxyLifetime)

setProxyOutputFile

public void setProxyOutputFile(String proxyOutputFile)

setProxyType

public void setProxyType(int proxyType)

validateACs

public void validateACs(List ACs)