public class FakeVOMSACService extends java.lang.Object implements VOMSACService
Modifier and Type | Field and Description |
---|---|
(package private) VOMSACGenerator |
acGenerator |
(package private) ACGenerationParams |
acParams |
(package private) long |
acSerialNumber |
(package private) VOMSRequestListener |
listener |
Modifier | Constructor and Description |
---|---|
private |
FakeVOMSACService(eu.emi.security.authn.x509.X509Credential aaCredential,
ACGenerationParams acParams,
VOMSRequestListener listener) |
Modifier and Type | Method and Description |
---|---|
protected org.bouncycastle.cert.X509AttributeCertificateHolder |
buildAC(eu.emi.security.authn.x509.X509Credential credential,
VOMSACRequest request) |
private VOMSServerInfo |
buildFakeServerInfo(java.lang.String vo,
java.lang.String host,
int port) |
ACGenerationParams |
getAcParams() |
long |
getAcSerialNumber() |
org.bouncycastle.asn1.x509.AttributeCertificate |
getVOMSAttributeCertificate(eu.emi.security.authn.x509.X509Credential credential,
VOMSACRequest request)
Returns an
AttributeCertificate given a VOMSACRequest for
VOMS attributes. |
static FakeVOMSACService |
newInstance(eu.emi.security.authn.x509.X509Credential aaCredential,
ACGenerationParams params,
VOMSRequestListener listener) |
static FakeVOMSACService |
newInstanceFromProperties(VOMSRequestListener listener) |
void |
setAcParams(ACGenerationParams acParams) |
void |
setAcSerialNumber(long acSerialNumber) |
final VOMSACGenerator acGenerator
final VOMSRequestListener listener
ACGenerationParams acParams
long acSerialNumber
private FakeVOMSACService(eu.emi.security.authn.x509.X509Credential aaCredential, ACGenerationParams acParams, VOMSRequestListener listener)
private VOMSServerInfo buildFakeServerInfo(java.lang.String vo, java.lang.String host, int port) throws java.net.URISyntaxException
java.net.URISyntaxException
protected org.bouncycastle.cert.X509AttributeCertificateHolder buildAC(eu.emi.security.authn.x509.X509Credential credential, VOMSACRequest request)
public org.bouncycastle.asn1.x509.AttributeCertificate getVOMSAttributeCertificate(eu.emi.security.authn.x509.X509Credential credential, VOMSACRequest request)
VOMSACService
AttributeCertificate
given a VOMSACRequest
for
VOMS attributes.getVOMSAttributeCertificate
in interface VOMSACService
credential
- the credential to be used when contacting the servicerequest
- the request for VOMS attributesAttributeCertificate
containing (a subset
of) the requested attributes.public ACGenerationParams getAcParams()
public void setAcParams(ACGenerationParams acParams)
public long getAcSerialNumber()
public void setAcSerialNumber(long acSerialNumber)
public static FakeVOMSACService newInstance(eu.emi.security.authn.x509.X509Credential aaCredential, ACGenerationParams params, VOMSRequestListener listener)
public static FakeVOMSACService newInstanceFromProperties(VOMSRequestListener listener)