| 1 | package org.bouncycastle.kmip.wire; |
| 2 | |
| 3 | public class KMIPLong |
| 4 | implements KMIPItem |
| 5 | { |
| 6 | private final int tag; |
| 7 | private final long value; |
| 8 | |
| 9 | public KMIPLong(int tag, long value) |
| 10 | { |
| 11 | this.tag = tag; |
| 12 | this.value = value; |
| 13 | } |
| 14 | |
| 15 | public int getTag() |
| 16 | { |
| 17 | return tag; |
| 18 | } |
| 19 | |
| 20 | public byte getType() |
| 21 | { |
| 22 | return KMIPType.LONG_INTEGER; |
| 23 | } |
| 24 | |
| 25 | public long getLength() |
| 26 | { |
| 27 | return 8; |
| 28 | } |
| 29 | |
| 30 | public Object getValue() |
| 31 | { |
| 32 | return new Long(value); |
| 33 | } |
| 34 | |
| 35 | public KMIPItem toKMIPItem() |
| 36 | { |
| 37 | return this; |
| 38 | } |
| 39 | } |
nothing calls this directly
no outgoing calls
no test coverage detected