|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ws4d.java.service.DeviceCommons
public abstract class DeviceCommons
Class represents the common part of a proxy/local DPWS device also known as
Hosting Service
.
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.Object |
getCertificate()
This certificate is used to validate signatures. |
java.lang.String |
getFirmwareVersion()
Gets firmware version. |
java.lang.String |
getFriendlyName(java.lang.String lang)
Gets friendly name of device. |
Iterator |
getFriendlyNames()
Gets iterator over all friendly names of device. |
java.lang.String |
getManufacturer(java.lang.String lang)
Gets manufacturer by language. |
Iterator |
getManufacturers()
Gets all manufacturers as iterator over manufacterer names. |
java.lang.String |
getManufacturerUrl()
Gets the url of the manufacturer. |
java.lang.String |
getModelName(java.lang.String lang)
Gets model name by language. |
Iterator |
getModelNames()
Gets all model names as iterator over model names. |
java.lang.String |
getModelNumber()
Gets model number of device. |
java.lang.String |
getModelUrl()
Gets model url of device. |
java.lang.String |
getPresentationUrl()
Gets presentation url of device. |
java.lang.Object |
getPrivateKey()
|
java.lang.String |
getSerialNumber()
Gets serial number. |
int |
hashCode()
|
boolean |
isSecure()
Sent using WS-Security techniques. |
void |
setCertificate(java.lang.Object certificate)
Sets the certificate of this device. |
void |
setPrivateKey(java.lang.Object privKey)
|
void |
setSecureDevice()
Sets the device to use security techniques. |
boolean |
setSecureDevice(java.lang.String certAlias,
java.lang.String privKeyAlias,
java.lang.String privKeyPass)
Makes the device secure and sets certificate and private key. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.ws4d.java.service.Device |
---|
addServiceReferences, getDefaultNamespace, getDeviceReference, getEndpointReference, getMetadataVersion, getPortTypes, getScopes, getServiceReference, getServiceReference, getServiceReferences, getServiceReferences, getXAddressInfos, hasCustomizeMData, invalidate, isRemote, isValid, readCustomizeMData |
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getManufacturer(java.lang.String lang)
Device
LocalizedString
.
getManufacturer
in interface Device
lang
- The language of the manufacturer's name to be obtained. The
language consts are specified in LocalizedString
.
LocalizedString
.public Iterator getManufacturers()
Device
LocalizedString
.
getManufacturers
in interface Device
LocalizedString
.public java.lang.String getManufacturerUrl()
Device
getManufacturerUrl
in interface Device
public java.lang.String getModelName(java.lang.String lang)
Device
LocalizedString
.
getModelName
in interface Device
lang
- Language of the model name to get. The language consts are
specified in LocalizedString
.
LocalizedString
.public Iterator getModelNames()
Device
LocalizedString
.
getModelNames
in interface Device
LocalizedString
.public java.lang.String getModelNumber()
Device
getModelNumber
in interface Device
public java.lang.String getModelUrl()
Device
getModelUrl
in interface Device
public java.lang.String getPresentationUrl()
Device
getPresentationUrl
in interface Device
public java.lang.String getFriendlyName(java.lang.String lang)
Device
getFriendlyName
in interface Device
lang
- language of friendly name
LocalizedString
in specified
languagepublic Iterator getFriendlyNames()
Device
LocalizedString
.
getFriendlyNames
in interface Device
LocalizedString
.public java.lang.String getFirmwareVersion()
Device
getFirmwareVersion
in interface Device
public java.lang.String getSerialNumber()
Device
getSerialNumber
in interface Device
public void setSecureDevice() throws java.lang.RuntimeException
java.lang.Exception
java.lang.RuntimeException
public boolean setSecureDevice(java.lang.String certAlias, java.lang.String privKeyAlias, java.lang.String privKeyPass) throws java.lang.RuntimeException
Device
setSecureDevice
in interface Device
certAlias
- Alias to get the certificate.privKeyAlias
- Alias to get the private key.privKeyPass
- Password to get the private key.
false
, if certificate or private key can't be
retrieved by specified aliases.
java.lang.RuntimeException
- thrown, if security is not supported by the
framework.public boolean isSecure()
isSecure
in interface Device
public void setCertificate(java.lang.Object certificate)
Device
setCertificate
in interface Device
certificate
- must be the java.security.cert.Certificate of the
sender device/servicepublic java.lang.Object getCertificate()
Device
getCertificate
in interface Device
public java.lang.Object getPrivateKey()
getPrivateKey
in interface Device
public void setPrivateKey(java.lang.Object privKey)
setPrivateKey
in interface Device
privKey
- must be the java.security.PrivateKey of the sender device/
servicepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |