|
|||||||||
| 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.Objectpublic java.lang.String getManufacturer(java.lang.String lang)
DeviceLocalizedString.
getManufacturer in interface Devicelang - The language of the manufacturer's name to be obtained. The
language consts are specified in LocalizedString.
LocalizedString.public Iterator getManufacturers()
DeviceLocalizedString.
getManufacturers in interface DeviceLocalizedString.public java.lang.String getManufacturerUrl()
Device
getManufacturerUrl in interface Devicepublic java.lang.String getModelName(java.lang.String lang)
DeviceLocalizedString.
getModelName in interface Devicelang - Language of the model name to get. The language consts are
specified in LocalizedString.
LocalizedString.public Iterator getModelNames()
DeviceLocalizedString.
getModelNames in interface DeviceLocalizedString.public java.lang.String getModelNumber()
Device
getModelNumber in interface Devicepublic java.lang.String getModelUrl()
Device
getModelUrl in interface Devicepublic java.lang.String getPresentationUrl()
Device
getPresentationUrl in interface Devicepublic java.lang.String getFriendlyName(java.lang.String lang)
Device
getFriendlyName in interface Devicelang - language of friendly name
LocalizedString in specified
languagepublic Iterator getFriendlyNames()
DeviceLocalizedString.
getFriendlyNames in interface DeviceLocalizedString.public java.lang.String getFirmwareVersion()
Device
getFirmwareVersion in interface Devicepublic 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 DevicecertAlias - 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 Devicepublic void setCertificate(java.lang.Object certificate)
Device
setCertificate in interface Devicecertificate - must be the java.security.cert.Certificate of the
sender device/servicepublic java.lang.Object getCertificate()
Device
getCertificate in interface Devicepublic java.lang.Object getPrivateKey()
getPrivateKey in interface Devicepublic void setPrivateKey(java.lang.Object privKey)
setPrivateKey in interface DeviceprivKey - must be the java.security.PrivateKey of the sender device/
servicepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||