2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.openflowplugin.openflow.md.core.session;
11 import java.security.MessageDigest;
16 public class SwitchConnectionCookieOFImpl extends SwitchSessionKeyOFImpl {
18 private short auxiliaryId;
22 * @see {@link SwitchSessionKeyOFImpl#SwitchSessionKeyOFImpl(byte[])}
24 public SwitchConnectionCookieOFImpl(byte[] encodedId) {
31 public SwitchConnectionCookieOFImpl() {
37 * the auxiliaryId to set
39 public void setAuxiliaryId(short auxiliaryId) {
40 this.auxiliaryId = auxiliaryId;
44 protected void extend(MessageDigest medi) {
46 medi.update(new byte[] { (byte) (auxiliaryId >> 8), (byte) auxiliaryId });