|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.voms.contact.VOMSProxyBuilder
public class VOMSProxyBuilder
This class implements VOMS X509 proxy certificates creation.
Field Summary | |
---|---|
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 Summary | |
---|---|
VOMSProxyBuilder()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public VOMSProxyBuilder()
Method Detail |
---|
public static AttributeCertificate buildAC(byte[] acBytes)
AttributeCertificate
(AC) object starting from an array of bytes.
acBytes
- the byte array containing the attribute certificate.
AttributeCertificate
object
VOMSException
- 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 conforms
UserCredentials
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |