Class ACGenerationParams
- java.lang.Object
-
- org.italiangrid.voms.request.impl.ACGenerationParams
-
public class ACGenerationParams extends java.lang.Object
This class represents the parameters required for generating an Attribute Certificate (AC). It encapsulates various attributes such as Virtual Organization (VO), Fully Qualified Attribute Names (FQANs), Generic Attributes (GAs), host details, validity periods, and a serial number.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ACGenerationParams.Builder
Builder class for constructingACGenerationParams
instances.
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<java.lang.String>
fqans
The list of Fully Qualified Attribute Names.(package private) java.util.List<VOMSGenericAttribute>
gas
The list of Generic Attributes.(package private) java.lang.String
host
The host associated with the AC request.(package private) java.util.Date
notAfter
The end time of the validity period.(package private) java.util.Date
notBefore
The start time of the validity period.(package private) int
port
The port associated with the AC request.(package private) java.math.BigInteger
serialNo
The serial number of the attribute certificate.(package private) java.lang.String
vo
The Virtual Organization name.
-
Constructor Summary
Constructors Modifier Constructor Description private
ACGenerationParams(ACGenerationParams.Builder builder)
Private constructor to initialize an instance using the Builder pattern.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ACGenerationParams.Builder
builder()
static ACGenerationParams
fromSystemProperties()
Constructs anACGenerationParams
instance from system properties.java.util.List<java.lang.String>
getFqans()
java.util.List<VOMSGenericAttribute>
getGas()
java.lang.String
getHost()
java.util.Date
getNotAfter()
java.util.Date
getNotBefore()
int
getPort()
java.math.BigInteger
getSerialNo()
java.lang.String
getVo()
-
-
-
Field Detail
-
vo
final java.lang.String vo
The Virtual Organization name.
-
fqans
final java.util.List<java.lang.String> fqans
The list of Fully Qualified Attribute Names.
-
gas
final java.util.List<VOMSGenericAttribute> gas
The list of Generic Attributes.
-
host
final java.lang.String host
The host associated with the AC request.
-
port
final int port
The port associated with the AC request.
-
notBefore
final java.util.Date notBefore
The start time of the validity period.
-
notAfter
final java.util.Date notAfter
The end time of the validity period.
-
serialNo
final java.math.BigInteger serialNo
The serial number of the attribute certificate.
-
-
Constructor Detail
-
ACGenerationParams
private ACGenerationParams(ACGenerationParams.Builder builder)
Private constructor to initialize an instance using the Builder pattern.- Parameters:
builder
- the builder instance used to construct this object
-
-
Method Detail
-
getVo
public java.lang.String getVo()
- Returns:
- the Virtual Organization name
-
getFqans
public java.util.List<java.lang.String> getFqans()
- Returns:
- the list of Fully Qualified Attribute Names
-
getGas
public java.util.List<VOMSGenericAttribute> getGas()
- Returns:
- the list of Generic Attributes
-
getHost
public java.lang.String getHost()
- Returns:
- the host associated with the AC request
-
getPort
public int getPort()
- Returns:
- the port associated with the AC request
-
getNotBefore
public java.util.Date getNotBefore()
- Returns:
- the start time of the validity period
-
getNotAfter
public java.util.Date getNotAfter()
- Returns:
- the end time of the validity period
-
getSerialNo
public java.math.BigInteger getSerialNo()
- Returns:
- the serial number of the attribute certificate
-
builder
public static ACGenerationParams.Builder builder()
- Returns:
- a new Builder instance
-
fromSystemProperties
public static ACGenerationParams fromSystemProperties()
Constructs anACGenerationParams
instance from system properties.- Returns:
- a configured ACGenerationParams instance.
-
-