org.glite.voms.contact
public class VOMSProxyBuilder extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_DELEGATION_TYPE |
static int |
DEFAULT_PROXY_LIFETIME |
static int |
DEFAULT_PROXY_TYPE |
static int |
GT2_PROXY |
static int |
GT3_PROXY |
static int |
GT4_PROXY |
Constructor and Description |
---|
VOMSProxyBuilder() |
Modifier and Type | Method and Description |
---|---|
static AttributeCertificate |
buildAC(byte[] acBytes)
This methods builds an
AttributeCertificate (AC) object starting from an array of bytes. |
static UserCredentials |
buildProxy(UserCredentials cred,
int lifetime,
int proxy_type) |
static UserCredentials |
buildProxy(UserCredentials cred,
int lifetime,
int proxy_type,
int bits) |
static UserCredentials |
buildProxy(UserCredentials cred,
java.util.List ACs,
int lifetime,
int gtVersion,
int delegType,
java.lang.String policyType)
This method is used to create a VOMS proxy starting from the
UserCredentials
passed as arguments and including a list of AttributeCertificate objects that
will be included in the proxy. |
static UserCredentials |
buildProxy(UserCredentials cred,
java.util.List ACs,
int lifetime,
int gtVersion,
int delegType,
java.lang.String policyType,
int bits) |
static void |
saveProxy(UserCredentials cred,
java.io.OutputStream os)
This method is write a globus proxy to an output stream.
|
static void |
saveProxy(UserCredentials cred,
java.lang.String filename)
This method saves a globus proxy to a file.
|
public static final int GT2_PROXY
public static final int GT3_PROXY
public static final int GT4_PROXY
public static final int DEFAULT_PROXY_TYPE
public static final int DEFAULT_DELEGATION_TYPE
public static final int DEFAULT_PROXY_LIFETIME
public static AttributeCertificate buildAC(byte[] acBytes)
AttributeCertificate
(AC) object starting from an array of bytes.acBytes
- the byte array containing the attribute certificate.AttributeCertificate
objectVOMSException
- in case of parsing errors.public static UserCredentials buildProxy(UserCredentials cred, java.util.List ACs, int lifetime, int gtVersion, int delegType, java.lang.String policyType)
UserCredentials
passed as arguments and including a list of AttributeCertificate
objects that
will be included in the proxy.cred
- the UserCredentials
from which the proxy must be created.ACs
- the list of AttributeCertificate
objects.lifetime
- the lifetime in seconds of the generated proxy.gtVersion
- the version of globus to which the proxy conformsUserCredentials
object that represents the proxy.VOMSException
- if something goes wrong.public static UserCredentials buildProxy(UserCredentials cred, java.util.List ACs, int lifetime, int gtVersion, int delegType, java.lang.String policyType, int bits)
public static UserCredentials buildProxy(UserCredentials cred, int lifetime, int proxy_type)
public static UserCredentials buildProxy(UserCredentials cred, int lifetime, int proxy_type, int bits)
public static void saveProxy(UserCredentials cred, java.io.OutputStream os)
cred
- os
- public static void saveProxy(UserCredentials cred, java.lang.String filename) throws java.io.FileNotFoundException
cred
- filename
- java.io.FileNotFoundException