Package org.italiangrid.voms.store.impl
Class LSCFile
java.lang.Object
org.italiangrid.voms.store.impl.LSCFile
- All Implemented Interfaces:
LSCInfo
Represents a VOMS LSC (Legacy Secure Channel) file.
The LSC file describes the certificate chain that a VOMS attribute authority uses to sign a VOMS attribute certificate. The LSC mechanism helps in solving the public key distribution problem for VOMS AA certificates and is used in the VOMS validation process to validate the signature on the AC. It does this by extracting the VOMS AA certificate included in the VOMS extension and ensuring that the chain conforms to the description in the LSC file.
Two LSCFile
objects are considered equal if their VO and hostname fields match.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines if twoLSCFile
objects are equal based on their VO and hostname.Returns the certificate chain description.Returns the filename of the LSC file.Returns the hostname.Returns the VO name.int
hashCode()
Computes the hash code for this LSC file.boolean
matches
(X509Certificate[] certChain) Checks if the given certificate chain matches the description in this LSC file.void
setCertificateChainDescription
(List<String> certChainDesc) Sets the certificate chain description.void
setFilename
(String filename) Sets the filename for this LSC file.void
setHostname
(String hostname) Sets the hostname.void
Sets the VO name.toString()
Returns a string representation of this LSC file.
-
Constructor Details
-
LSCFile
public LSCFile()
-
-
Method Details
-
getVOName
Returns the VO name. -
getHostname
Returns the hostname.- Specified by:
getHostname
in interfaceLSCInfo
- Returns:
- the hostname
-
getCertificateChainDescription
Returns the certificate chain description.- Specified by:
getCertificateChainDescription
in interfaceLSCInfo
- Returns:
- a list of certificate chain descriptions
-
getFilename
Returns the filename of the LSC file.- Specified by:
getFilename
in interfaceLSCInfo
- Returns:
- the LSC filename
-
setFilename
Sets the filename for this LSC file.- Specified by:
setFilename
in interfaceLSCInfo
- Parameters:
filename
- the filename to set
-
setVo
Sets the VO name.- Parameters:
vo
- the VO name to set
-
setHostname
Sets the hostname.- Parameters:
hostname
- the hostname to set
-
setCertificateChainDescription
Sets the certificate chain description.- Parameters:
certChainDesc
- the certificate chain description to set
-
hashCode
public int hashCode()Computes the hash code for this LSC file. -
equals
Determines if twoLSCFile
objects are equal based on their VO and hostname. -
toString
Returns a string representation of this LSC file. -
matches
Checks if the given certificate chain matches the description in this LSC file.
-