public class TTPAcquisitionMechanism extends AAcquisitionMechanism
Modifier and Type | Field and Description |
---|---|
protected java.util.Random |
rnd
The random generator.
|
protected jadex.bridge.IComponentIdentifier |
ttpcid
The component id of the trusted third party.
|
protected jadex.bridge.service.types.security.ISecurityService |
ttpsecser
The security service of the ttp.
|
protected boolean |
verify
Must ttp be verify (i.e.
|
secser
Constructor and Description |
---|
TTPAcquisitionMechanism()
Create a new mechanism.
|
TTPAcquisitionMechanism(java.lang.String ttpname)
Create a new mechanism.
|
Modifier and Type | Method and Description |
---|---|
jadex.commons.future.IFuture<java.security.cert.Certificate> |
acquireCertificate(java.lang.String name)
Acquire a certificate.
|
jadex.bridge.service.types.security.MechanismInfo |
getMechanismInfo()
Get the mechanism info for the gui.
|
jadex.commons.Properties |
getProperties()
Get the properties of the mechanism.
|
protected jadex.commons.future.IFuture<jadex.bridge.service.types.security.ISecurityService> |
getTTPSecurityService()
Get the security service of the ttp.
|
void |
setParameterValue(java.lang.String name,
java.lang.Object value)
Set a mechanism parameter value.
|
void |
setProperties(jadex.commons.Properties props)
Set the properties of the mechanism.
|
void |
setTTPCid(jadex.bridge.IComponentIdentifier ttpcid)
Set the ttpcid.
|
void |
setverify(boolean verify)
Set the verify.
|
protected jadex.commons.future.IFuture<java.lang.Void> |
verifyTTP(jadex.bridge.service.types.security.ISecurityService ss) |
getSecurityService, init
protected jadex.bridge.IComponentIdentifier ttpcid
protected boolean verify
protected jadex.bridge.service.types.security.ISecurityService ttpsecser
protected java.util.Random rnd
public TTPAcquisitionMechanism()
public TTPAcquisitionMechanism(java.lang.String ttpname)
public jadex.commons.future.IFuture<java.security.cert.Certificate> acquireCertificate(java.lang.String name)
AAcquisitionMechanism
acquireCertificate
in class AAcquisitionMechanism
name
- The platform prefix of the target.public jadex.bridge.service.types.security.MechanismInfo getMechanismInfo()
getMechanismInfo
in class AAcquisitionMechanism
public void setParameterValue(java.lang.String name, java.lang.Object value)
setParameterValue
in class AAcquisitionMechanism
name
- The mechanism name.value
- The mechanism value.protected jadex.commons.future.IFuture<jadex.bridge.service.types.security.ISecurityService> getTTPSecurityService()
protected jadex.commons.future.IFuture<java.lang.Void> verifyTTP(jadex.bridge.service.types.security.ISecurityService ss)
public void setTTPCid(jadex.bridge.IComponentIdentifier ttpcid)
ttpcid
- The ttpcid to set.public void setverify(boolean verify)
verify
- The verify to set.public jadex.commons.Properties getProperties()
getProperties
in class AAcquisitionMechanism
public void setProperties(jadex.commons.Properties props)
setProperties
in class AAcquisitionMechanism