Codota Logo
IpsecSession
Code IndexAdd Codota to your IDE (free)

How to use
IpsecSession
in
org.batfish.datamodel

Best Java code snippets using org.batfish.datamodel.IpsecSession (Showing top 11 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: batfish/batfish

 @Override
 protected IpsecPhase2Proposal featureValueOf(IpsecSession actual) {
  return actual.getNegotiatedIpsecP2Proposal();
 }
}
origin: batfish/batfish

 @Override
 protected IkePhase1Key featureValueOf(IpsecSession actual) {
  return actual.getNegotiatedIkeP1Key();
 }
}
origin: batfish/batfish

 @Override
 protected IkePhase1Proposal featureValueOf(IpsecSession actual) {
  return actual.getNegotiatedIkeP1Proposal();
 }
}
origin: batfish/batfish

private static void processNeighbor(
  IpsecPeerConfigId ipsecPeerConfigIdNeighbor,
  IpsecSessionInfo.Builder ipsecSessioningInfoBuilder,
  IpsecPeerConfig ipsecPeerConfigNeighbor,
  IpsecSession ipsecSession) {
 ipsecSessioningInfoBuilder.setResponderHostname(ipsecPeerConfigIdNeighbor.getHostName());
 ipsecSessioningInfoBuilder.setResponderInterface(ipsecPeerConfigNeighbor.getSourceInterface());
 ipsecSessioningInfoBuilder.setResponderIp(ipsecPeerConfigNeighbor.getLocalAddress());
 ipsecSessioningInfoBuilder.setResponderTunnelInterface(
   ipsecPeerConfigNeighbor.getTunnelInterface());
 if (ipsecSession.getNegotiatedIkeP1Proposal() == null) {
  ipsecSessioningInfoBuilder.setIpsecSessionStatus(IKE_PHASE1_FAILED);
 } else if (ipsecSession.getNegotiatedIkeP1Key() == null) {
  ipsecSessioningInfoBuilder.setIpsecSessionStatus(IKE_PHASE1_KEY_MISMATCH);
 } else if (ipsecSession.getNegotiatedIpsecP2Proposal() == null) {
  ipsecSessioningInfoBuilder.setIpsecSessionStatus(IPSEC_PHASE2_FAILED);
 } else {
  ipsecSessioningInfoBuilder.setIpsecSessionStatus(IPSEC_SESSION_ESTABLISHED);
 }
}
origin: batfish/batfish

/**
 * Gets the {@link IpsecSession} between two {@link IpsecPeerConfig}s where the initiator should
 * always be an {@link IpsecStaticPeerConfig}. Returned {@link IpsecSession} object will have
 * respective fields for IKE P1 proposals, IKE P1 keys and IPSec P2 proposals populated depending
 * on the negotiation.
 */
@Nonnull
private static IpsecSession getIpsecSession(
  Configuration initiatorOwner,
  Configuration peerOwner,
  IpsecStaticPeerConfig initiator,
  IpsecPeerConfig candidatePeer) {
 IpsecSession.Builder ipsecSessionBuilder = IpsecSession.builder();
 negotiateIkeP1(initiatorOwner, peerOwner, initiator, candidatePeer, ipsecSessionBuilder);
 if (ipsecSessionBuilder.getNegotiatedIkeP1Proposal() == null
   || ipsecSessionBuilder.getNegotiatedIkeP1Key() == null) {
  return ipsecSessionBuilder.build();
 }
 negotiateIpsecP2(initiatorOwner, peerOwner, initiator, candidatePeer, ipsecSessionBuilder);
 return ipsecSessionBuilder.build();
}
origin: batfish/batfish

public IpsecSession build() {
 return new IpsecSession(
   _initiatorIkeP1Policy,
   _initiatorIpsecP2Policy,
   _negotiatedIkeP1Proposal,
   _negotiatedIkeP1Key,
   _negotiatedIpsecP2Proposal,
   _responderIkeP1Policy,
   _responderIpsecP2Policy);
}
origin: batfish/batfish

  peerId1,
  peerId3,
  IpsecSession.builder().setNegotiatedIpsecP2Proposal(new IpsecPhase2Proposal()).build());
ipsecTopology.putEdgeValue(peerId2, peerId4, IpsecSession.builder().build());
origin: batfish/batfish

  .setTunnelInterface("Tunnel_interface");
_graph = ValueGraphBuilder.directed().allowsSelfLoops(false).build();
_ipsecSessionBuilder = IpsecSession.builder();
origin: batfish/batfish

     ipsecTopology.edgeValue(endpoint.nodeU(), endpoint.nodeV());
   return ipsecSession.isPresent()
     && ipsecSession.get().getNegotiatedIpsecP2Proposal() != null;
  })
.forEach(
origin: batfish/batfish

    .build();
IpsecSession.Builder ipseeSessionBuilder = IpsecSession.builder();
IpsecSession unEstablishedSession = IpsecSession.builder().build();
ipseeSessionBuilder.setNegotiatedIpsecP2Proposal(new IpsecPhase2Proposal());
IpsecSession establishedSession = ipseeSessionBuilder.build();
origin: batfish/batfish

 && edgeIpsecSession.get().getNegotiatedIpsecP2Proposal() != null) {
successfulIPsecEdges.add(new Edge(tunnelEndPointU, tunnelEndPointV));
org.batfish.datamodelIpsecSession

Javadoc

Represents the attributes of the session established between two IpsecPeerConfigs

Most used methods

  • builder
  • getNegotiatedIpsecP2Proposal
  • getNegotiatedIkeP1Key
  • getNegotiatedIkeP1Proposal
  • <init>

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • getContentResolver (Context)
  • findViewById (Activity)
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • String (java.lang)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JFrame (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now