public class LSCFile extends java.lang.Object implements LSCInfo
LSCFile
object are considered to be equal if their vo and
hostname fields match.Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<java.lang.String> |
certChainDescription
The certificate chain description contained in this LSC file
|
(package private) java.lang.String |
filename
The LSC filename
|
(package private) java.lang.String |
hostname
The hostname this LSC file is about
|
(package private) java.lang.String |
vo
The VO this LSC file is about
|
Constructor and Description |
---|
LSCFile() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getCertificateChainDescription()
Returns the certificate chain description of the VOMS AA for the given VO
and hostname.
|
java.lang.String |
getFilename()
Returns the name of file from where this LSC info was parsed from.
|
java.lang.String |
getHostname()
Returns the host name of the VOMS AA this LSC info applies to.
|
java.lang.String |
getVo() |
java.lang.String |
getVOName()
Returns the VO name this LSC info applies to.
|
int |
hashCode() |
boolean |
matches(java.security.cert.X509Certificate[] certChain)
Checks if the certificate chain description maintained in the LSC
information matches the certificate chain passed as argument.
|
void |
setCertificateChainDescription(java.util.List<java.lang.String> certChainDesc) |
void |
setFilename(java.lang.String filename)
Sets the name of the file from where this LSC info was parsed from.
|
void |
setHostname(java.lang.String hostname) |
void |
setVo(java.lang.String vo) |
java.lang.String |
toString() |
java.lang.String filename
java.lang.String vo
java.lang.String hostname
java.util.List<java.lang.String> certChainDescription
public java.lang.String getVOName()
LSCInfo
public java.lang.String getHostname()
LSCInfo
getHostname
in interface LSCInfo
public java.util.List<java.lang.String> getCertificateChainDescription()
LSCInfo
/C=IT/O=INFN/CN=INFN CA
The first element in the description is the leaf certificate, while the
last is the CA certificate.getCertificateChainDescription
in interface LSCInfo
public java.lang.String getFilename()
LSCInfo
getFilename
in interface LSCInfo
public java.lang.String getVo()
public void setFilename(java.lang.String filename)
LSCInfo
setFilename
in interface LSCInfo
filename
- the name of the file from where this LSC info was parsed from.public void setVo(java.lang.String vo)
public void setHostname(java.lang.String hostname)
public void setCertificateChainDescription(java.util.List<java.lang.String> certChainDesc)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean matches(java.security.cert.X509Certificate[] certChain)
LSCInfo