Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- addComment(String) - Method in class nts.TimeInfo
-
Add comment (error/warning) to list of comments associated with processing of NTP parameters.
- addCookieEF(byte[]) - Method in class nts.NtsImpl
-
Adds a cookie extension field to the NTSv4 packet.
- addCookieEF(byte[]) - Method in interface nts.NtsPacket
-
Adds a cookie extension field to the NTSv4 packet.
- addCookiePlaceholderEF(byte[]) - Method in class nts.NtsImpl
-
Adds a cookie placeholder extension filed to the NTSv4 packet
- addCookiePlaceholderEF(byte[]) - Method in interface nts.NtsPacket
-
Adds a cookie placeholder extension filed to the NTSv4 packet
- addExtensionField(NTSExtensionField) - Method in class nts.NtpV4Impl
- addExtensionField(NTSExtensionField) - Method in interface nts.NtpV4Packet
- addExtensionFields(List<NTSExtensionField>) - Method in class nts.NtpV4Impl
- addExtensionFields(List<NTSExtensionField>) - Method in interface nts.NtpV4Packet
- addNTSKERecord(NTSKERecord) - Method in class nts.NTSKEMessage
- addUniqueIdentifierEF(byte[]) - Method in class nts.NtsImpl
-
Adds a unique identifier extension field to the NTSv4 packet.
- addUniqueIdentifierEF(byte[]) - Method in interface nts.NtsPacket
-
Adds a unique identifier extension field to the NTSv4 packet.
- AEAD_AEGIS128L - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AEGIS256 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_128_CCM - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_128_CCM_8 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_128_CCM_SHORT - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_128_CCM_SHORT_12 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_128_CCM_SHORT_8 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_128_GCM - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_128_GCM_12 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_128_GCM_8 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_128_GCM_SIV - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_128_OCB_TAGLEN128 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_128_OCB_TAGLEN64 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_128_OCB_TAGLEN96 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_192_OCB_TAGLEN128 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_192_OCB_TAGLEN64 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_192_OCB_TAGLEN96 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_256_CCM - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_256_CCM_8 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_256_CCM_SHORT - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_256_CCM_SHORT_12 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_256_CCM_SHORT_8 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_256_GCM - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_256_GCM_12 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_256_GCM_8 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_256_GCM_SIV - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_256_OCB_TAGLEN128 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_256_OCB_TAGLEN64 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_256_OCB_TAGLEN96 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_SIV_CMAC_256 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_SIV_CMAC_256 - Static variable in class nts.NTSKEHandshake
- AEAD_AES_SIV_CMAC_384 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_AES_SIV_CMAC_512 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEAD_CHACHA20_POLY1305 - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- AEADAlgorithm - Variable in class nts.NTSConfig
- AEADAlgorithmNegotiation - Class in nts.NTSKERecords
- AEADAlgorithmNegotiation - Enum constant in enum class nts.NTSKERecords.NTSKERecordType
- AEADAlgorithmNegotiation(byte[]) - Constructor for class nts.NTSKERecords.AEADAlgorithmNegotiation
-
Constructor for AEADAlgorithmNegotiation record from a raw byte array.
- AEADAlgorithmNegotiation(Constants.AEADAlgorithms[]) - Constructor for class nts.NTSKERecords.AEADAlgorithmNegotiation
-
Constructor for AEADAlgorithmNegotiation record with default values.
- algorithms - Variable in class nts.NTSKERecords.AEADAlgorithmNegotiation
- associatedDataLenght - Variable in class nts.NtsImpl
- authAndEncEF - Variable in class nts.NtsImpl
- AuthenticationFailureException - Exception Class in nts
- AuthenticationFailureException(String) - Constructor for exception class nts.AuthenticationFailureException
B
- BAD_REQUEST - Enum constant in enum class nts.NTSKERecords.Constants.ErrorCodes
- body - Variable in class nts.NTSExtensionFields.NTSExtensionField
- bodyLength - Variable in class nts.NTSKERecords.NTSKERecord
- buf - Variable in class nts.NtpV3Impl
- buildRequest() - Method in class nts.NtpV3Impl
-
Build a request packet
- buildRequest() - Method in interface nts.NtpV3Packet
-
Build a request packet
- buildRequest(byte[], int) - Method in class nts.NtsImpl
-
Build an NTS packet
- buildRequest(byte[], int) - Method in interface nts.NtsPacket
-
Build an NTS packet
C
- C2S_CONTEXT - Static variable in class nts.NTSKEHandshake
- C2SKey - Variable in class nts.NTSConfig
- compareTo(TimeStamp) - Method in class nts.TimeStamp
-
Compares two Timestamps numerically.
- computeDetails() - Method in class nts.TimeInfo
-
Compute and validate details of the NTP message packet.
- Constants - Class in nts.NTSKERecords
- Constants() - Constructor for class nts.NTSKERecords.Constants
- Constants.AEADAlgorithms - Enum Class in nts.NTSKERecords
- Constants.ErrorCodes - Enum Class in nts.NTSKERecords
- Constants.NTSNextProtocols - Enum Class in nts.NTSKERecords
- cookies - Variable in class nts.NTSConfig
- createAuthAndEncEF() - Method in class nts.NtsImpl
-
Creates the AuthAndEnc EF with the given keys and a random nonce.
- createAuthAndEncEF() - Method in interface nts.NtsPacket
-
Creates the AuthAndEnc EF with the given keys and a random nonce.
- createAuthAndEncEF(byte[]) - Method in class nts.NtsImpl
-
Creates the AuthAndEnc EF with the given keys and nonce.
- createAuthAndEncEF(byte[]) - Method in interface nts.NtsPacket
-
Creates the AuthAndEnc EF with the given keys and nonce.
- criticalBit - Variable in class nts.NTSKERecords.NTSKERecord
D
- decodeNtpHexString(String) - Static method in class nts.TimeStamp
-
Convert NTP timestamp hexstring (e.g.
- decryptAndVerify() - Method in class nts.NtsImpl
-
Decrypt and verify a received NTS packet
- decryptAndVerify() - Method in interface nts.NtsPacket
-
Decrypt and verify a received NTS packet
- DEFAULT_PORT - Static variable in class nts.NTPUDPClient
-
The default NTP port.
- DEFAULT_PORT - Static variable in class nts.NTSUDPClient
-
The default NTP port.
- doHandshake() - Method in class nts.NTSPeer
- doHandshake(String, int) - Method in class nts.NTSKEHandshake
E
- EndOfMessage - Class in nts.NTSKERecords
- EndOfMessage - Enum constant in enum class nts.NTSKERecords.NTSKERecordType
- EndOfMessage() - Constructor for class nts.NTSKERecords.EndOfMessage
-
Constructor for EndOfMessage record with default values.
- EndOfMessage(byte[]) - Constructor for class nts.NTSKERecords.EndOfMessage
-
Constructor for EndOfMessage record from a raw byte array.
- equals(Object) - Method in class nts.NtpV3Impl
-
Compares this object against the specified object.
- equals(Object) - Method in class nts.NtpV4Impl
-
Compares this object against the specified object.
- equals(Object) - Method in class nts.TimeInfo
-
Compares this object against the specified object.
- equals(Object) - Method in class nts.TimeStamp
-
Compares this object against the specified object.
- Error - Class in nts.NTSKERecords
- Error - Enum constant in enum class nts.NTSKERecords.NTSKERecordType
- Error(byte[]) - Constructor for class nts.NTSKERecords.Error
-
Constructor for Error record from a raw byte array.
- Error(Constants.ErrorCodes) - Constructor for class nts.NTSKERecords.Error
-
Constructor for Error record with default values.
- errorCode - Variable in class nts.NTSKERecords.Error
- extensionFields - Variable in class nts.NtpV4Impl
F
- fieldType - Variable in class nts.NTSExtensionFields.NTSExtensionField
- FieldType - Enum Class in nts.NTSExtensionFields
- fromBytes(byte[]) - Static method in enum class nts.NTSExtensionFields.FieldType
- fromBytes(byte[]) - Static method in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- fromBytes(byte[]) - Static method in enum class nts.NTSKERecords.Constants.ErrorCodes
- fromBytes(byte[]) - Static method in enum class nts.NTSKERecords.Constants.NTSNextProtocols
- fromBytes(byte[], int) - Static method in class nts.NTSExtensionFields.NTSExtensionField
- fromValue(int) - Static method in enum class nts.NTSExtensionFields.FieldType
- fromValue(int) - Static method in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- fromValue(int) - Static method in enum class nts.NTSKERecords.Constants.ErrorCodes
- fromValue(int) - Static method in enum class nts.NTSKERecords.Constants.NTSNextProtocols
- fromValue(int) - Static method in enum class nts.NTSKERecords.NTSKERecordType
G
- getAddress() - Method in class nts.TimeInfo
-
Gets host address from message datagram if available
- getAEADAlgorithmNegotiationRecord(Constants.AEADAlgorithms) - Static method in class nts.NTSKERecords.NTSKERecordFactory
- getBytesValue() - Method in enum class nts.NTSExtensionFields.FieldType
-
Returns the byte representation of the NTSNextProtocols value in 2 bytes.
- getBytesValue() - Method in enum class nts.NTSKERecords.Constants.AEADAlgorithms
-
Returns the byte representation of the AEADAlgorithm value in 2 bytes.
- getBytesValue() - Method in enum class nts.NTSKERecords.Constants.ErrorCodes
-
Returns the byte representation of the ErrorCode value in 2 bytes.
- getBytesValue() - Method in enum class nts.NTSKERecords.Constants.NTSNextProtocols
-
Returns the byte representation of the NTSNextProtocols value in 2 bytes.
- getComments() - Method in class nts.TimeInfo
-
Return list of comments (if any) during processing of NTP packet.
- getCurrentTime() - Static method in class nts.TimeStamp
-
Constructs a NTP timestamp object and initializes it so that it represents the time at which it was allocated, measured to the nearest millisecond.
- getDatagramPacket() - Method in class nts.NtpV3Impl
-
Returns the datagram packet with the NTP details already filled in.
- getDatagramPacket() - Method in interface nts.NtpV3Packet
- getDatagramPacket(int) - Method in class nts.NtpV3Impl
-
Returns the datagram packet with the NTP details already filled in.
- getDatagramPacket(int) - Method in interface nts.NtpV3Packet
- getDate() - Method in class nts.TimeStamp
-
Converts NTP timestamp to Java Date object.
- getDelay() - Method in class nts.TimeInfo
-
Gets round-trip network delay.
- getEndOfMessageRecord() - Static method in class nts.NTSKERecords.NTSKERecordFactory
- getErrorRecord(Constants.ErrorCodes) - Static method in class nts.NTSKERecords.NTSKERecordFactory
- getExtensionFields() - Method in class nts.NtpV4Impl
- getExtensionFields() - Method in interface nts.NtpV4Packet
- getExtensionFields(int) - Method in class nts.NtpV4Impl
- getExtensionFields(int) - Method in interface nts.NtpV4Packet
- getFieldLength() - Method in class nts.NTSExtensionFields.NTSExtensionField
-
Returns the length of the extension field.
- getFraction() - Method in class nts.TimeStamp
-
Returns low-order 32-bits representing the fractional seconds.
- getHostAddress(int) - Static method in class nts.NtpUtils
-
Returns 32-bit integer address to IPv4 address string "%d.%d.%d.%d" format.
- getLeapIndicator() - Method in class nts.NtpV3Impl
-
Returns leap indicator as defined in RFC-1305 which is a two-bit code: 0=no warning 1=last minute has 61 seconds 2=last minute has 59 seconds 3=alarm condition (clock not synchronized)
- getLeapIndicator() - Method in interface nts.NtpV3Packet
- getMessage() - Method in class nts.TimeInfo
-
Returns NTP message packet.
- getMode() - Method in class nts.NtpV3Impl
-
Returns mode as defined in RFC-1305 which is a 3-bit integer whose value is indicated by the MODE_xxx parameters.
- getMode() - Method in interface nts.NtpV3Packet
- getModeName() - Method in class nts.NtpV3Impl
-
Return human-readable name of message mode type as described in RFC 1305.
- getModeName() - Method in interface nts.NtpV3Packet
- getModeName(int) - Static method in class nts.NtpUtils
-
Return human-readable name of message mode type (RFC 1305).
- getNtpTime(long) - Static method in class nts.TimeStamp
-
Helper method to convert Java time to NTP timestamp object.
- getNTSNextProtocolNegotiationRecord(Constants.NTSNextProtocols) - Static method in class nts.NTSKERecords.NTSKERecordFactory
- getOffset() - Method in class nts.TimeInfo
-
Gets clock offset needed to adjust local clock to match remote clock.
- getOriginateTimeStamp() - Method in class nts.NtpV3Impl
-
Returns the
originatetime as defined in RFC-1305. - getOriginateTimeStamp() - Method in interface nts.NtpV3Packet
- getPoll() - Method in class nts.NtpV3Impl
-
Returns poll interval as defined in RFC-1305, which is an eight-bit signed integer indicating the maximum interval between successive messages, in seconds to the nearest power of two (e.g.
- getPoll() - Method in interface nts.NtpV3Packet
- getPrecision() - Method in class nts.NtpV3Impl
-
Returns precision as defined in RFC-1305 encoded as an 8-bit signed integer (seconds to the nearest power of two).
- getPrecision() - Method in interface nts.NtpV3Packet
- getReceiveTimeStamp() - Method in class nts.NtpV3Impl
-
Returns
receivetimestamp as defined in RFC-1305. - getReceiveTimeStamp() - Method in interface nts.NtpV3Packet
- getRefAddress(NtpV3Packet) - Static method in class nts.NtpUtils
-
Returns NTP packet reference identifier as IP address.
- getReferenceClock(NtpV3Packet) - Static method in class nts.NtpUtils
-
Gets refId as reference clock string (e.g.
- getReferenceId() - Method in class nts.NtpV3Impl
-
Returns the reference id as defined in RFC-1305, which is a 32-bit integer whose value is dependent on several criteria.
- getReferenceId() - Method in interface nts.NtpV3Packet
- getReferenceIdString() - Method in class nts.NtpV3Impl
-
Returns the reference id string.
- getReferenceIdString() - Method in interface nts.NtpV3Packet
- getReferenceTimeStamp() - Method in class nts.NtpV3Impl
-
Returns the reference time as defined in RFC-1305.
- getReferenceTimeStamp() - Method in interface nts.NtpV3Packet
- getReturnTime() - Method in class nts.TimeInfo
-
Returns time at which time message packet was received by local machine.
- getRootDelay() - Method in class nts.NtpV3Impl
-
Return root delay as defined in RFC-1305, which is the total roundtrip delay to the primary reference source, in seconds.
- getRootDelay() - Method in interface nts.NtpV3Packet
- getRootDelayInMillisDouble() - Method in class nts.NtpV3Impl
-
Return root delay as defined in RFC-1305 in milliseconds, which is the total roundtrip delay to the primary reference source, in seconds.
- getRootDelayInMillisDouble() - Method in interface nts.NtpV3Packet
- getRootDispersion() - Method in class nts.NtpV3Impl
-
Returns root dispersion as defined in RFC-1305.
- getRootDispersion() - Method in interface nts.NtpV3Packet
- getRootDispersionInMillis() - Method in class nts.NtpV3Impl
-
Returns root dispersion (as defined in RFC-1305) in milliseconds.
- getRootDispersionInMillis() - Method in interface nts.NtpV3Packet
- getRootDispersionInMillisDouble() - Method in class nts.NtpV3Impl
-
Returns root dispersion (as defined in RFC-1305) in milliseconds as double precision value.
- getRootDispersionInMillisDouble() - Method in interface nts.NtpV3Packet
- getSeconds() - Method in class nts.TimeStamp
-
Returns high-order 32-bits representing the seconds of this NTP timestamp.
- getStratum() - Method in class nts.NtpV3Impl
-
Returns Stratum as defined in RFC-1305, which indicates the stratum level of the local clock, with values defined as follows: 0=unspecified, 1=primary ref clock, and all others a secondary reference (via NTP).
- getStratum() - Method in interface nts.NtpV3Packet
- getTime() - Method in class nts.TimeStamp
-
Converts NTP timestamp to Java standard time.
- getTime(long) - Static method in class nts.TimeStamp
-
Converts 64-bit NTP timestamp to Java standard time.
- getTime(InetAddress) - Method in class nts.NTPUDPClient
-
Retrieves the time information from the specified server on the default NTP port and returns it.
- getTime(InetAddress) - Method in class nts.NTSUDPClient
-
Retrieves the time information from the specified server on the default NTP port and returns it.
- getTime(InetAddress, int) - Method in class nts.NTPUDPClient
-
Retrieves the time information from the specified server and port and returns it.
- getTime(InetAddress, int) - Method in class nts.NTSUDPClient
-
Retrieves the time information from the specified server and port and returns it.
- getTransmitTimeStamp() - Method in class nts.NtpV3Impl
-
Returns the
transmittimestamp as defined in RFC-1305. - getTransmitTimeStamp() - Method in interface nts.NtpV3Packet
- getType() - Method in class nts.NtpV3Impl
-
Return type of time packet.
- getType() - Method in interface nts.NtpV3Packet
-
Return type of time packet.
- getValue() - Method in enum class nts.NTSExtensionFields.FieldType
- getValue() - Method in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- getValue() - Method in enum class nts.NTSKERecords.Constants.ErrorCodes
- getValue() - Method in enum class nts.NTSKERecords.Constants.NTSNextProtocols
- getValue() - Method in enum class nts.NTSKERecords.NTSKERecordType
- getVersion() - Method in class nts.NTPUDPClient
-
Returns the NTP protocol version number that client sets on request packet that is sent to remote host (e.g.
- getVersion() - Method in class nts.NtpV3Impl
-
Returns NTP version number as defined in RFC-1305.
- getVersion() - Method in interface nts.NtpV3Packet
- getVersion() - Method in class nts.NTSUDPClient
-
Returns the NTP protocol version number that client sets on request packet that is sent to remote host (e.g.
- getWarningRecord(int) - Static method in class nts.NTSKERecords.NTSKERecordFactory
H
- hashCode() - Method in class nts.NtpV3Impl
-
Computes a hash code for this object.
- hashCode() - Method in class nts.TimeInfo
-
Computes a hash code for this object.
- hashCode() - Method in class nts.TimeStamp
-
Computes a hash code for this Timestamp.
- host - Variable in class nts.NTSConfig
I
- INTERNAL_SERVER_ERROR - Enum constant in enum class nts.NTSKERecords.Constants.ErrorCodes
K
L
- LABEL - Static variable in class nts.NTSKEHandshake
- LI_ALARM_CONDITION - Static variable in interface nts.NtpV3Packet
-
3
- LI_LAST_MINUTE_HAS_59_SECONDS - Static variable in interface nts.NtpV3Packet
-
2
- LI_LAST_MINUTE_HAS_61_SECONDS - Static variable in interface nts.NtpV3Packet
-
1
- LI_NO_WARNING - Static variable in interface nts.NtpV3Packet
-
0
M
- main(String[]) - Static method in class NtpTime
- main(String[]) - Static method in class nts.NTSKEHandshake
- main(String[]) - Static method in class NTSTime
- MODE_BROADCAST - Static variable in interface nts.NtpV3Packet
-
Mode option 5.
- MODE_CLIENT - Static variable in interface nts.NtpV3Packet
-
Mode option 3.
- MODE_CONTROL_MESSAGE - Static variable in interface nts.NtpV3Packet
-
Mode option 6.
- MODE_PRIVATE - Static variable in interface nts.NtpV3Packet
-
Mode option 7.
- MODE_RESERVED - Static variable in interface nts.NtpV3Packet
-
Mode option 0.
- MODE_SERVER - Static variable in interface nts.NtpV3Packet
-
Mode option 4.
- MODE_SYMMETRIC_ACTIVE - Static variable in interface nts.NtpV3Packet
-
Mode option 1.
- MODE_SYMMETRIC_PASSIVE - Static variable in interface nts.NtpV3Packet
-
Mode option 2.
- msb0baseTime - Static variable in class nts.TimeStamp
-
Baseline NTP time if bit-0=0 is 7-Feb-2036 @ 06:28:16 UTC
- msb1baseTime - Static variable in class nts.TimeStamp
-
Baseline NTP time if bit-0=1 is 1-Jan-1900 @ 01:00:00 UTC
N
- nakReceived - Variable in class nts.NTSPeer
- NewCookieForNTPv4 - Class in nts.NTSKERecords
- NewCookieForNTPv4 - Enum constant in enum class nts.NTSKERecords.NTSKERecordType
- NewCookieForNTPv4(byte[]) - Constructor for class nts.NTSKERecords.NewCookieForNTPv4
-
Constructor for NewCookie record from a raw byte array.
- NTP_DATE_FORMAT - Static variable in class nts.TimeStamp
-
Default NTP date string format.
- NTP_MAXCLOCK - Static variable in interface nts.NtpV3Packet
-
10
- NTP_MAXPOLL - Static variable in interface nts.NtpV3Packet
-
14
- NTP_MINCLOCK - Static variable in interface nts.NtpV3Packet
-
1
- NTP_MINPOLL - Static variable in interface nts.NtpV3Packet
-
4
- NTP_PORT - Static variable in interface nts.NtpV3Packet
-
Standard NTP UDP port
- NtpTime - Class in Unnamed Package
- NtpTime() - Constructor for class NtpTime
- NTPUDPClient - Class in nts
-
The NTPUDPClient class is a UDP implementation of a client for the Network Time Protocol (NTP) described in RFC 1305 as well as the Simple Network Time Protocol (SNTP) in RFC-2030.
- NTPUDPClient() - Constructor for class nts.NTPUDPClient
- NtpUtils - Class in nts
-
Common NtpUtils Helper class.
- NtpUtils() - Constructor for class nts.NtpUtils
- NtpV3Impl - Class in nts
-
Implements
NtpV3Packetto convert Java objects to and from the Network Time Protocol (NTP) data message header format described in RFC-1305. - NtpV3Impl() - Constructor for class nts.NtpV3Impl
-
Creates a new instance of NtpV3Impl
- NtpV3Packet - Interface in nts
-
Interface for a NtpV3Packet with get/set methods corresponding to the fields in the NTP Data Message Header described in RFC 1305.
- NTPv4 - Enum constant in enum class nts.NTSKERecords.Constants.NTSNextProtocols
- NtpV4Impl - Class in nts
-
Implements
NtpV3Packetto convert Java objects to and from the Network Time Protocol (NTP) data message header format described in RFC-1305. - NtpV4Impl() - Constructor for class nts.NtpV4Impl
-
Creates a new instance of NtpV4Impl
- NtpV4Packet - Interface in nts
- NTPv4Port - Variable in class nts.NTSKERecords.NTPv4PortNegotiation
- NTPv4PortNegotiation - Class in nts.NTSKERecords
- NTPv4PortNegotiation - Enum constant in enum class nts.NTSKERecords.NTSKERecordType
- NTPv4PortNegotiation(byte[]) - Constructor for class nts.NTSKERecords.NTPv4PortNegotiation
-
Constructor for NTPv4PortNegotiation record from a raw byte array.
- NTPv4Server - Variable in class nts.NTSKERecords.NTPv4ServerNegotiation
- NTPv4ServerNegotiation - Class in nts.NTSKERecords
- NTPv4ServerNegotiation - Enum constant in enum class nts.NTSKERecords.NTSKERecordType
- NTPv4ServerNegotiation(byte[]) - Constructor for class nts.NTSKERecords.NTPv4ServerNegotiation
-
Constructor for NTPv4ServerNegotiation record from a raw byte array.
- ntpValue() - Method in class nts.TimeStamp
-
Returns the value of this Timestamp as a long value.
- nts - package nts
-
NTP - network time protocol
- NTS_AUTH_AND_ENC - Enum constant in enum class nts.NTSExtensionFields.FieldType
- NTS_COOKIE - Enum constant in enum class nts.NTSExtensionFields.FieldType
- NTS_COOKIE_PLACEHOLDER - Enum constant in enum class nts.NTSExtensionFields.FieldType
- nts.NTSExtensionFields - package nts.NTSExtensionFields
- nts.NTSKERecords - package nts.NTSKERecords
- ntsConfig - Variable in class nts.NTSPeer
- NTSConfig - Class in nts
- NTSConfig() - Constructor for class nts.NTSConfig
- NTSConfig(Constants.NTSNextProtocols, Constants.AEADAlgorithms, List<byte[]>, String, int, byte[], byte[]) - Constructor for class nts.NTSConfig
- NTSExtensionField - Class in nts.NTSExtensionFields
- NTSExtensionField(FieldType, byte[]) - Constructor for class nts.NTSExtensionFields.NTSExtensionField
-
Constructor for NTSExtensionField from arbitrary parameters.
- NtsImpl - Class in nts
-
Implements
NtsPacketto convert Java objects to and from the Network Time Protocol (NTP) data message header format described in RFC-1305. - NtsImpl(byte[]) - Constructor for class nts.NtsImpl
-
Creates a new instance of NtsImpl
- NTSKEHandshake - Class in nts
- NTSKEHandshake() - Constructor for class nts.NTSKEHandshake
- NTSKEMessage - Class in nts
- NTSKEMessage() - Constructor for class nts.NTSKEMessage
- NTSKERecord - Class in nts.NTSKERecords
- NTSKERecord(byte[]) - Constructor for class nts.NTSKERecords.NTSKERecord
-
Constructor for NTSKERecord from a raw byte array.
- NTSKERecord(int, int, int, byte[]) - Constructor for class nts.NTSKERecords.NTSKERecord
-
Constructor for NTSKERecord from arbitrary parameters.
- NTSKERecordFactory - Class in nts.NTSKERecords
- NTSKERecordFactory() - Constructor for class nts.NTSKERecords.NTSKERecordFactory
- NTSKERecordType - Enum Class in nts.NTSKERecords
- NtsNakException - Exception Class in nts
- NTSNextProtocolNegotiation - Class in nts.NTSKERecords
- NTSNextProtocolNegotiation - Enum constant in enum class nts.NTSKERecords.NTSKERecordType
- NTSNextProtocolNegotiation(byte[]) - Constructor for class nts.NTSKERecords.NTSNextProtocolNegotiation
-
Constructor for NTSNextProtocolNegotiation record from a raw byte array.
- NTSNextProtocolNegotiation(Constants.NTSNextProtocols) - Constructor for class nts.NTSKERecords.NTSNextProtocolNegotiation
-
Constructor for NTSNextProtocolNegotiation record with default values.
- NtsPacket - Interface in nts
- NTSPeer - Class in nts
- NTSPeer() - Constructor for class nts.NTSPeer
- NTSPeer(String) - Constructor for class nts.NTSPeer
- NTSProtocol - Variable in class nts.NTSConfig
- NTSProtocol - Variable in class nts.NTSKERecords.NTSNextProtocolNegotiation
- NTSTime - Class in Unnamed Package
- NTSTime() - Constructor for class NTSTime
- NTSUDPClient - Class in nts
-
The NTPUDPClient class is a UDP implementation of a client for the Network Time Protocol (NTP) described in RFC 1305 as well as the Simple Network Time Protocol (SNTP) in RFC-2030.
- NTSUDPClient() - Constructor for class nts.NTSUDPClient
P
- parseNtpString(String) - Static method in class nts.TimeStamp
-
Parses the string argument as a NTP hexidecimal timestamp representation string (e.g.
- parseNTSKERawMessage(byte[], int) - Static method in class nts.NTSKEMessage
- parseRecord(byte[]) - Static method in class nts.NTSKERecords.NTSKERecordFactory
-
Factory method to create an NTSKEBaseRecord from a raw byte array.
- parseResponse(String, int) - Method in class nts.NTSKEMessage
-
Parse the response from the NTS KE Server and extract the NTSConfig.
- plaintext - Variable in class nts.NtsImpl
- port - Variable in class nts.NTSConfig
- prepareAuthAndEncEF() - Method in class nts.NtsImpl
-
Constructs all the possible variables that will be used for the authentication and encryption extension field.
- prepareAuthAndEncEF() - Method in interface nts.NtsPacket
-
Constructs all the possible variables that will be used for the authentication and encryption extension field.
- processResponse(TimeInfo) - Static method in class NtpTime
- processResponse(TimeInfo) - Static method in class NTSTime
- PROTO_ID_NTPV4 - Static variable in class nts.NTSKEHandshake
R
- recordBody - Variable in class nts.NTSKERecords.NTSKERecord
- recordType - Variable in class nts.NTSKERecords.NTSKERecord
- recordType_raw - Variable in class nts.NTSKERecords.NTSKERecord
- replaceBody(byte[], int) - Method in class nts.NTSExtensionFields.NTSExtensionField
- RESERVED - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- RESERVED - Enum constant in enum class nts.NTSKERecords.Constants.NTSNextProtocols
S
- S2C_CONTEXT - Static variable in class nts.NTSKEHandshake
- S2CKey - Variable in class nts.NTSConfig
- setDatagramPacket(DatagramPacket) - Method in class nts.NtpV3Impl
-
Sets the contents of this object from source datagram packet.
- setDatagramPacket(DatagramPacket) - Method in interface nts.NtpV3Packet
-
Sets the contents of this object from the datagram packet
- setLeapIndicator(int) - Method in class nts.NtpV3Impl
-
Sets leap indicator as defined in RFC-1305.
- setLeapIndicator(int) - Method in interface nts.NtpV3Packet
-
Sets leap indicator.
- setMode(int) - Method in class nts.NtpV3Impl
-
Sets mode as defined in RFC-1305.
- setMode(int) - Method in interface nts.NtpV3Packet
-
Sets mode as defined in RFC-1305
- setOriginateTimeStamp(TimeStamp) - Method in class nts.NtpV3Impl
-
Sets originate timestamp given NTP TimeStamp object.
- setOriginateTimeStamp(TimeStamp) - Method in interface nts.NtpV3Packet
-
Sets originate timestamp given NTP TimeStamp object.
- setPoll(int) - Method in class nts.NtpV3Impl
-
Sets poll interval as defined in RFC-1305.
- setPoll(int) - Method in interface nts.NtpV3Packet
-
Sets poll interval as defined in RFC-1305.
- setPrecision(int) - Method in class nts.NtpV3Impl
-
Sets precision as defined in RFC-1305.
- setPrecision(int) - Method in interface nts.NtpV3Packet
-
Sets precision as defined in RFC-1305
- setReceiveTimeStamp(TimeStamp) - Method in class nts.NtpV3Impl
-
Sets receive timestamp given NTP TimeStamp object.
- setReceiveTimeStamp(TimeStamp) - Method in interface nts.NtpV3Packet
-
Sets receive timestamp given NTP TimeStamp object.
- setReferenceId(int) - Method in class nts.NtpV3Impl
-
Sets reference clock identifier field with 32-bit unsigned integer value.
- setReferenceId(int) - Method in interface nts.NtpV3Packet
-
Sets reference clock identifier field.
- setReferenceTime(TimeStamp) - Method in class nts.NtpV3Impl
-
Sets Reference time with NTP timestamp.
- setReferenceTime(TimeStamp) - Method in interface nts.NtpV3Packet
-
Sets the reference timestamp given NTP TimeStamp object.
- setRootDelay(int) - Method in class nts.NtpV3Impl
-
Sets root delay as defined in RFC-1305.
- setRootDelay(int) - Method in interface nts.NtpV3Packet
-
Sets root delay as defined in RFC-1305
- setRootDispersion(int) - Method in class nts.NtpV3Impl
-
Sets root dispersion as defined in RFC-1305.
- setRootDispersion(int) - Method in interface nts.NtpV3Packet
- setStratum(int) - Method in class nts.NtpV3Impl
-
Sets stratum level as defined in RFC-1305.
- setStratum(int) - Method in interface nts.NtpV3Packet
-
Sets stratum as defined in RFC-1305
- setTransmitTime(TimeStamp) - Method in class nts.NtpV3Impl
-
Sets transmit time with NTP timestamp.
- setTransmitTime(TimeStamp) - Method in interface nts.NtpV3Packet
-
Sets the
transmittimestamp given NTP TimeStamp object. - setVersion(int) - Method in class nts.NTPUDPClient
-
Sets the NTP protocol version number that client sets on request packet communicate with remote host.
- setVersion(int) - Method in class nts.NtpV3Impl
-
Sets NTP version as defined in RFC-1305.
- setVersion(int) - Method in interface nts.NtpV3Packet
-
Sets version as defined in RFC-1305
- setVersion(int) - Method in class nts.NTSUDPClient
-
Sets the NTP protocol version number that client sets on request packet communicate with remote host.
T
- TimeInfo - Class in nts
-
Wrapper class to network time packet messages (NTP, etc.) that computes related timing info and stats.
- TimeInfo(NtpV3Packet, long) - Constructor for class nts.TimeInfo
-
Create TimeInfo object with raw packet message and destination time received.
- TimeInfo(NtpV3Packet, long, boolean) - Constructor for class nts.TimeInfo
-
Create TimeInfo object with raw packet message and destination time received.
- TimeInfo(NtpV3Packet, long, List<String>) - Constructor for class nts.TimeInfo
-
Create TimeInfo object with raw packet message and destination time received.
- TimeInfo(NtpV3Packet, long, List<String>, boolean) - Constructor for class nts.TimeInfo
-
Create TimeInfo object with raw packet message and destination time received.
- TimeStamp - Class in nts
-
TimeStamp class represents the Network Time Protocol (NTP) timestamp as defined in RFC-1305 and SNTP (RFC-2030).
- TimeStamp(long) - Constructor for class nts.TimeStamp
-
Constructs a newly allocated NTP timestamp object that represents the native 64-bit long argument.
- TimeStamp(String) - Constructor for class nts.TimeStamp
-
Constructs a newly allocated NTP timestamp object that represents the value represented by the string in hexdecimal form (e.g.
- TimeStamp(Date) - Constructor for class nts.TimeStamp
-
Constructs a newly allocated NTP timestamp object that represents the Java Date argument.
- toByteArray() - Method in class nts.NTSExtensionFields.NTSExtensionField
-
Converts the NTSExtensionField to a byte array to be send over the network.
- toBytes() - Method in class nts.NTSKEMessage
- toBytes() - Method in class nts.NTSKERecords.NTSKERecord
-
Converts the NTSKERecord to a byte array to be send over the network.
- toByteString() - Method in class nts.NTSExtensionFields.NTSExtensionField
-
Converts the NTSExtensionField to a byte string representation for debugging purposes.
- toByteString() - Method in class nts.NTSKEMessage
- toByteString() - Method in class nts.NTSKERecords.NTSKERecord
-
Converts the NTSKERecord to a byte string representation for debugging purposes.
- toDateString() - Method in class nts.TimeStamp
-
Converts this
TimeStampobject to aStringof the form: - toNtpTime(long) - Static method in class nts.TimeStamp
-
Converts Java time to 64-bit NTP time representation.
- toString() - Method in class nts.NtpV3Impl
-
Returns details of NTP packet as a string.
- toString() - Method in class nts.NtpV4Impl
-
Returns details of NTP packet as a string.
- toString() - Method in class nts.NTSConfig
- toString() - Method in class nts.NTSExtensionFields.NTSExtensionField
-
Converts the NTSExtensionField to a string representation for debugging purposes.
- toString() - Method in class nts.NTSKEMessage
- toString() - Method in class nts.NTSKERecords.NTSKERecord
-
Converts the NTSKERecord to a string representation for debugging purposes.
- toString() - Method in class nts.TimeStamp
-
Converts this
TimeStampobject to aString. - toString(long) - Static method in class nts.TimeStamp
-
Converts 64-bit NTP timestamp value to a
String. - toUTCString() - Method in class nts.TimeStamp
-
Converts this
TimeStampobject to aStringof the form: - TYPE_DAYTIME - Static variable in interface nts.NtpV3Packet
-
"DAYTIME"
- TYPE_ICMP - Static variable in interface nts.NtpV3Packet
-
"ICMP"
- TYPE_NTP - Static variable in interface nts.NtpV3Packet
-
"NTP"
- TYPE_TIME - Static variable in interface nts.NtpV3Packet
-
"TIME"
U
- ui(byte) - Static method in class nts.NtpV3Impl
-
Convert byte to unsigned integer.
- ul(byte) - Static method in class nts.NtpV3Impl
-
Convert byte to unsigned long.
- UNASSIGNED - Enum constant in enum class nts.NTSKERecords.Constants.AEADAlgorithms
- UNASSIGNED - Enum constant in enum class nts.NTSKERecords.Constants.NTSNextProtocols
- UNIQUE_IDENTIFIER - Enum constant in enum class nts.NTSExtensionFields.FieldType
- UNRECOGNIZED_CRITICAL_RECORD - Enum constant in enum class nts.NTSKERecords.Constants.ErrorCodes
V
- validate(NtpV3Packet) - Method in class nts.NtpV3Impl
-
Validate a response packet given a request packet
- validate(NtpV3Packet) - Method in interface nts.NtpV3Packet
-
Validate a response packet given a request packet
- validate(NtsPacket) - Method in class nts.NtsImpl
-
Validate a response packet given a request packet
- validate(NtsPacket) - Method in interface nts.NtsPacket
-
Validate a response packet given a request packet
- valueOf(String) - Static method in enum class nts.NTSExtensionFields.FieldType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class nts.NTSKERecords.Constants.AEADAlgorithms
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class nts.NTSKERecords.Constants.ErrorCodes
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class nts.NTSKERecords.Constants.NTSNextProtocols
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class nts.NTSKERecords.NTSKERecordType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class nts.NTSExtensionFields.FieldType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class nts.NTSKERecords.Constants.AEADAlgorithms
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class nts.NTSKERecords.Constants.ErrorCodes
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class nts.NTSKERecords.Constants.NTSNextProtocols
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class nts.NTSKERecords.NTSKERecordType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VERSION_3 - Static variable in interface nts.NtpV3Packet
-
3
- VERSION_4 - Static variable in interface nts.NtpV3Packet
-
4
W
- Warning - Class in nts.NTSKERecords
- Warning - Enum constant in enum class nts.NTSKERecords.NTSKERecordType
- Warning(byte[]) - Constructor for class nts.NTSKERecords.Warning
-
Constructor for Warning record from a raw byte array.
- Warning(int) - Constructor for class nts.NTSKERecords.Warning
-
Constructor for Warning record with default values.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form