@UriEndpoint(firstVersion="2.16.0",
scheme="coap,coaps,coap+tcp,coaps+tcp",
title="CoAP",
syntax="coap:uri",
category=IOT)
public class CoAPEndpoint
extends org.apache.camel.support.DefaultEndpoint
| Constructor and Description |
|---|
CoAPEndpoint(String uri,
CoAPComponent component) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.eclipse.californium.scandium.DTLSConnector |
createDTLSConnector(InetSocketAddress address,
boolean client) |
org.apache.camel.Producer |
createProducer() |
static boolean |
enableDTLS(URI uri) |
static boolean |
enableTCP(URI uri) |
String |
getAlias()
Gets the alias used to query the KeyStore for the private key and certificate.
|
String |
getCipherSuites()
Gets the cipherSuites String.
|
String |
getClientAuthentication()
Gets the configuration options for server-side client-authentication requirements.
|
String |
getCoapMethodRestrict()
Comma separated list of methods that the CoAP consumer will bind to.
|
org.eclipse.californium.core.CoapServer |
getCoapServer() |
PrivateKey |
getPrivateKey()
Get the configured private key for use with Raw Public Key.
|
org.eclipse.californium.scandium.dtls.pskstore.PskStore |
getPskStore()
Get the PskStore to use for pre-shared key.
|
PublicKey |
getPublicKey()
Get the configured public key for use with Raw Public Key.
|
org.apache.camel.support.jsse.SSLContextParameters |
getSslContextParameters()
Get the SSLContextParameters object for setting up TLS.
|
org.eclipse.californium.scandium.dtls.rpkstore.TrustedRpkStore |
getTrustedRpkStore()
Get the TrustedRpkStore to use to determine trust in raw public keys.
|
URI |
getUri()
The URI for the CoAP endpoint
|
boolean |
isClientAuthenticationRequired() |
boolean |
isClientAuthenticationWanted() |
boolean |
isRecommendedCipherSuitesOnly() |
void |
setAlias(String alias)
Sets the alias used to query the KeyStore for the private key and certificate.
|
void |
setCipherSuites(String cipherSuites)
Sets the cipherSuites String.
|
void |
setClientAuthentication(String clientAuthentication)
Sets the configuration options for server-side client-authentication requirements.
|
void |
setCoapMethodRestrict(String coapMethodRestrict) |
void |
setPrivateKey(PrivateKey privateKey)
Set the configured private key for use with Raw Public Key.
|
void |
setPskStore(org.eclipse.californium.scandium.dtls.pskstore.PskStore pskStore)
Set the PskStore to use for pre-shared key.
|
void |
setPublicKey(PublicKey publicKey)
Set the configured public key for use with Raw Public Key.
|
void |
setRecommendedCipherSuitesOnly(boolean recommendedCipherSuitesOnly)
The CBC cipher suites are not recommended.
|
void |
setSslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)
Set the SSLContextParameters object for setting up TLS.
|
void |
setTrustedRpkStore(org.eclipse.californium.scandium.dtls.rpkstore.TrustedRpkStore trustedRpkStore)
Set the TrustedRpkStore to use to determine trust in raw public keys.
|
void |
setUri(URI u) |
configureConsumer, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isSingleton, isSynchronous, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringbuild, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic CoAPEndpoint(String uri, CoAPComponent component)
public void setCoapMethodRestrict(String coapMethodRestrict)
public String getCoapMethodRestrict()
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
Exceptionpublic void setUri(URI u)
public URI getUri()
public org.eclipse.californium.core.CoapServer getCoapServer()
throws IOException,
GeneralSecurityException
IOExceptionGeneralSecurityExceptionpublic String getAlias()
public void setAlias(String alias)
public org.apache.camel.support.jsse.SSLContextParameters getSslContextParameters()
public void setSslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)
public org.eclipse.californium.scandium.dtls.rpkstore.TrustedRpkStore getTrustedRpkStore()
public void setTrustedRpkStore(org.eclipse.californium.scandium.dtls.rpkstore.TrustedRpkStore trustedRpkStore)
public org.eclipse.californium.scandium.dtls.pskstore.PskStore getPskStore()
public void setPskStore(org.eclipse.californium.scandium.dtls.pskstore.PskStore pskStore)
public PrivateKey getPrivateKey()
public void setPrivateKey(PrivateKey privateKey)
public PublicKey getPublicKey()
public void setPublicKey(PublicKey publicKey)
public String getCipherSuites()
public void setCipherSuites(String cipherSuites)
public String getClientAuthentication()
public void setClientAuthentication(String clientAuthentication)
public boolean isRecommendedCipherSuitesOnly()
public void setRecommendedCipherSuitesOnly(boolean recommendedCipherSuitesOnly)
public boolean isClientAuthenticationRequired()
public boolean isClientAuthenticationWanted()
public static boolean enableDTLS(URI uri)
public static boolean enableTCP(URI uri)
public org.eclipse.californium.scandium.DTLSConnector createDTLSConnector(InetSocketAddress address, boolean client) throws IOException
IOExceptionApache Camel