com.h3c.util.pkt

## Class Dns.SigData

- java.lang.Object
- - com.h3c.util.pkt.Dns.SigData

- Enclosing class:
    Dns

      public static class Dns.SigData
      extends Object

  DNS "Signature" resource data (immutable).

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `Dns.SigData.Algorithm` Algorithm types.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Dns.SigData(Dns.RecordType typeCovered, Dns.SigData.Algorithm algorithm, int labels, long origTtl, long expirationTs, long signedTs, int signingId, String signersName, byte[] signature)` Creates "Signature" resource data.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Dns.SigData.Algorithm` | `algorithm()` Returns the algorithm type.
    `long` | `expirationTs()` Returns the expiration timestamp.
    `int` | `labels()` Returns the number of labels.
    `long` | `origTtl()` Returns the original time-to-live value.
    `byte[]` | `signature()` Returns a copy of the signature bytes.
    `long` | `signedTs()` Returns the signed timestamp.
    `String` | `signersName()` Returns the signer's name.
    `int` | `signingId()` Returns the signing ID.
    `String` | `toString()`
    `Dns.RecordType` | `typeCovered()` Returns the type covered in this record.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### Dns.SigData

          public Dns.SigData(Dns.RecordType typeCovered,
                     Dns.SigData.Algorithm algorithm,
                     int labels,
                     long origTtl,
                     long expirationTs,
                     long signedTs,
                     int signingId,
                     String signersName,
                     byte[] signature)

      Creates "Signature" resource data.
      Parameters:
        `typeCovered` - the type covered
        `algorithm` - the algorithm type
        `labels` - the number of labels
        `origTtl` - the original time-to-live value
        `expirationTs` - the expiration timestamp
        `signedTs` - the signed timestamp
        `signingId` - the signing ID
        `signersName` - the signer's name
        `signature` - the signature bytes

  - ### Method Detail

    - #### typeCovered

          public Dns.RecordType typeCovered()

      Returns the type covered in this record.
      Returns:
        the type covered

    - #### algorithm

          public Dns.SigData.Algorithm algorithm()

      Returns the algorithm type.
      Returns:
        the algorithm type

    - #### labels

          public int labels()

      Returns the number of labels.
      Returns:
        the number of labels

    - #### origTtl

          public long origTtl()

      Returns the original time-to-live value.
      Returns:
        the original time-to-live value

    - #### expirationTs

          public long expirationTs()

      Returns the expiration timestamp.
      Returns:
        the expiration timestamp

    - #### signedTs

          public long signedTs()

      Returns the signed timestamp.
      Returns:
        the signed timestamp

    - #### signingId

          public int signingId()

      Returns the signing ID.
      Returns:
        the signing ID

    - #### signersName

          public String signersName()

      Returns the signer's name.
      Returns:
        the signer's name

    - #### signature

          public byte[] signature()

      Returns a copy of the signature bytes.
      Returns:
        the signature bytes

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2014. All Rights Reserved.