Skip to content

Commit

Permalink
Remove no more used classes (since transport layer refactoring is done)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed Dec 16, 2022
1 parent ea88d08 commit f6652c3
Show file tree
Hide file tree
Showing 17 changed files with 37 additions and 1,137 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
import org.eclipse.leshan.core.CertificateUsage;
import org.eclipse.leshan.core.SecurityMode;
import org.eclipse.leshan.core.californium.DefaultExceptionTranslator;
import org.eclipse.leshan.core.californium.EndpointContextUtil;
import org.eclipse.leshan.core.californium.ExceptionTranslator;
import org.eclipse.leshan.core.californium.Lwm2mEndpointContextMatcher;
import org.eclipse.leshan.core.californium.identity.IdentityHandler;
Expand All @@ -76,6 +75,7 @@
import org.eclipse.leshan.core.request.Identity;
import org.eclipse.leshan.core.request.exception.TimeoutException;
import org.eclipse.leshan.core.request.exception.TimeoutException.Type;
import org.eclipse.leshan.core.util.X509CertUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -353,7 +353,7 @@ public Identity getIdentity(Message receivedMessage) {
return Identity.rpk(peerAddress, publicKey);
} else if (senderIdentity instanceof X500Principal || senderIdentity instanceof X509CertPath) {
// Extract common name
String x509CommonName = EndpointContextUtil.extractCN(senderIdentity.getName());
String x509CommonName = X509CertUtil.extractCN(senderIdentity.getName());
return Identity.x509(peerAddress, x509CommonName);
}
throw new IllegalStateException(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@
*/
public abstract class AsyncRequestObserver<T extends LwM2mResponse> extends CoapAsyncRequestObserver {

public AsyncRequestObserver(Request coapRequest, final ResponseCallback<T> responseCallback,
final ErrorCallback errorCallback, long timeoutInMs, ScheduledExecutorService executor) {
this(coapRequest, responseCallback, errorCallback, timeoutInMs, executor, new TemporaryExceptionTranslator());
}

/**
* A Californium message observer for a CoAP request helping to get results asynchronously dedicated for LWM2M
* requests.
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit f6652c3

Please sign in to comment.