Unsupported library that attempts to punch holes through NAT
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MessageIntegrity.java 685B

123456789101112131415161718192021222324252627
  1. /*
  2. * This file is part of JSTUN.
  3. *
  4. * Copyright (c) 2005 Thomas King <king@t-king.de> - All rights
  5. * reserved.
  6. *
  7. * This software is licensed under either the GNU Public License (GPL),
  8. * or the Apache 2.0 license. Copies of both license agreements are
  9. * included in this distribution.
  10. */
  11. package de.javawi.jstun.attribute;
  12. public class MessageIntegrity extends MessageAttribute {
  13. // incomplete message integrity implementation
  14. public MessageIntegrity() {
  15. super(MessageAttribute.MessageAttributeType.MessageIntegrity);
  16. }
  17. public byte[] getBytes() {
  18. return new byte[0];
  19. }
  20. public static MessageIntegrity parse(byte[] data) {
  21. return new MessageIntegrity();
  22. }
  23. }