Class ACGenerationParams
- java.lang.Object
-
- org.italiangrid.voms.request.impl.ACGenerationParams
-
public class ACGenerationParams extends java.lang.ObjectThis 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 classACGenerationParams.BuilderBuilder class for constructingACGenerationParamsinstances.
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<java.lang.String>fqansThe list of Fully Qualified Attribute Names.(package private) java.util.List<VOMSGenericAttribute>gasThe list of Generic Attributes.(package private) java.lang.StringhostThe host associated with the AC request.(package private) java.util.DatenotAfterThe end time of the validity period.(package private) java.util.DatenotBeforeThe start time of the validity period.(package private) intportThe port associated with the AC request.(package private) java.math.BigIntegerserialNoThe serial number of the attribute certificate.(package private) java.lang.StringvoThe Virtual Organization name.
-
Constructor Summary
Constructors Modifier Constructor Description privateACGenerationParams(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.Builderbuilder()static ACGenerationParamsfromSystemProperties()Constructs anACGenerationParamsinstance from system properties.java.util.List<java.lang.String>getFqans()java.util.List<VOMSGenericAttribute>getGas()java.lang.StringgetHost()java.util.DategetNotAfter()java.util.DategetNotBefore()intgetPort()java.math.BigIntegergetSerialNo()java.lang.StringgetVo()
-
-
-
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 anACGenerationParamsinstance from system properties.- Returns:
- a configured ACGenerationParams instance.
-
-