Class Smf2IntervalRecord


public final class Smf2IntervalRecord extends SmfRecord
  • Constructor Details

    • Smf2IntervalRecord

      public Smf2IntervalRecord(byte[] data)
      Constructs an Smf2Record from the specified byte array.
      Parameters:
      data - a byte array containing the SMF record data
    • Smf2IntervalRecord

      public Smf2IntervalRecord(SmfRecord record)
      Constructs a new Smf2Record from an existing SMF record. The 2 records share the same data byte array.
      Parameters:
      record - an existing SMF record
  • Method Details

    • from

      public static Smf2IntervalRecord from(SmfRecord record)
      Constructs a new Smf2IntervalRecord from an existing SMF record. The 2 records share the same data byte array.
      Parameters:
      record - an existing SMF record
    • from

      public static Smf2IntervalRecord from(byte[] data)
      Constructs an Smf2IntervalRecord from the specified byte array.
      Parameters:
      data - a byte array containing the SMF record data
    • smf2ilen

      public int smf2ilen()
      SMF2ILEN value.
      Returns:
      int SMF2ILEN value
    • smf2iseg

      public int smf2iseg()
      SMF2ISEG value.
      Returns:
      int SMF2ISEG value
    • smf2iflg

      public int smf2iflg()
      SMF2IFLG value.
      Returns:
      int SMF2IFLG value
    • smf2irty

      public int smf2irty()
      SMF2IRTY value.
      Returns:
      int SMF2IRTY value
    • smf2itme

      public LocalTime smf2itme()
      SMF2ITME as a LocalTime.
      Returns:
      LocalTime SMF2ITME Time
      See Also:
    • smf2itmeRawValue

      public long smf2itmeRawValue()
      SMF2ITME raw value
      Returns:
      long SMF2ITME value
    • smf2idte

      public LocalDate smf2idte()
      SMF2IDTE as a LocalDate.
      Returns:
      LocalDate SMF2IDTE Date
      See Also:
    • smf2idteRawValue

      public int smf2idteRawValue()
      SMF2IDTE raw value.
      Returns:
      int SMF2IDTE value
    • smf2isid

      public String smf2isid()
      SMF2ISID value.
      Returns:
      String SMF2ISID value
    • smf2iwid

      public String smf2iwid()
      SMF2IWID value.
      Returns:
      String SMF2IWID value
    • smf2istp

      public int smf2istp()
      SMF2ISTP value.
      Returns:
      int SMF2ISTP value
    • smf2irsid

      public String smf2irsid()
      SMF2IRSID value.
      Returns:
      String SMF2IRSID value
    • smf2iflg2

      public int smf2iflg2()
      SMF2IFLG2 value.
      Returns:
      int SMF2IFLG2 value
    • firstInterval

      public boolean firstInterval()
      Return true if FIRSTINTERVAL bit in smf2iflg2() is set.
      Returns:
      boolean FIRSTINTERVAL bit is set in smf2iflg2()

      FIRSTINTERVAL = 0x80

    • intervalHasSubtype

      public boolean intervalHasSubtype()
      Return true if INTERVALHASSUBTYPE bit in smf2iflg2() is set.
      Returns:
      boolean INTERVALHASSUBTYPE bit is set in smf2iflg2()

      INTERVALHASSUBTYPE = 0x40

    • intervalHalt

      public boolean intervalHalt()
      Return true if this interval is the result of a HALT - the HALTINTERVAL bit in smf2iflg2() is set.
      Returns:
      boolean HALTINTERVAL bit is set in smf2iflg2()

      HALTINTERVAL = 0x20

    • intervalNewCryptoOptions

      public boolean intervalNewCryptoOptions()
      Return true if this interval contains new cryptography options - NEWINTERVALCRYPTOOPTIONS bit in smf2iflg2() is set.
      Returns:
      boolean NEWINTERVALCRYPTOOPTIONS bit is set in smf2iflg2()

      NEWINTERVALCRYPTOOPTIONS = 0x10

    • typeInSmf2irtypx

      public boolean typeInSmf2irtypx()
      Return true if this interval type is in SMF2IRTYPX.
      Returns:
      boolean SMF2IRTYPX bit is set in smf2iflg2()

      SMF2IRTYPX = 0x08

    • intervalClose

      public boolean intervalClose()
      Return true if this is a Close Interval record - the CLOSEINTERVAL bit in smf2iflg2() is set.
      Returns:
      boolean CLOSEINTERVAL bit is set in smf2iflg2()

      CLOSEINTERVAL = 0x04

    • hasOA55526

      public boolean hasOA55526()
      Return true if this record indicates that the fix for OA55526 was applied.
      Returns:
      boolean the 0x02 bit is set in smf2gflg2()
    • hasSelfDefiningSection

      public boolean hasSelfDefiningSection()
      Return true if this record has a self defining section.
      Returns:
      boolean the 0x10 bit is set in smf2iflg2()
    • intervalRecordType

      public int intervalRecordType()
      SMF2IRTYPE or SMF2IRTYPX value. Checks the bit to determine whether the value is in SMF2IRTYPE or SMF2IRTYPX and returns the appropriate value.
      Returns:
      int Interval Record Type
    • smf2irtype

      @Deprecated public int smf2irtype()
      Deprecated.
      SMF2IRTYPE value. This field is not used in z/OS 2.3 and above. Use intervalRecordType() to return SMF2IRTYPE or SMF2IRTYPX depending on flags or smf2irtypx() for z/OS 2.3+
      Returns:
      int SMF2IRTYPE value
    • smf2istype

      public int smf2istype()
      SMF2ISTYPE value.
      Returns:
      int SMF2ISTYPE value
    • smf2iftme

      public LocalTime smf2iftme()
      SMF2IFTME as a LocalTime.
      Returns:
      LocalTime SMF2IFTME Time
      See Also:
    • smf2iftmeRawValue

      public long smf2iftmeRawValue()
      SMF2IFTME raw value
      Returns:
      long SMF2IFTME value
    • smf2ifdte

      public LocalDate smf2ifdte()
      SMF2IFDTE as a LocalDate.
      Returns:
      LocalDate SMF2IFDTE Date
      See Also:
    • smf2ifdteRawValue

      public int smf2ifdteRawValue()
      SMF2IFDTE raw value.
      Returns:
      int SMF2IFDTE value
    • smf2iltme

      public LocalTime smf2iltme()
      SMF2ILTME as a LocalTime.
      Returns:
      LocalTime SMF2ILTME Time
      See Also:
    • smf2iltmeRawValue

      public long smf2iltmeRawValue()
      SMF2ILTME raw value
      Returns:
      long SMF2ILTME value
    • smf2ildte

      public LocalDate smf2ildte()
      SMF2ILDTE as a LocalDate.
      Returns:
      LocalDate SMF2ILDTE Date
      See Also:
    • smf2ildteRawValue

      public int smf2ildteRawValue()
      SMF2ILDTE raw value.
      Returns:
      int SMF2ILDTE value
    • smf2intme

      public LocalTime smf2intme()
      SMF2INTME as a LocalTime.
      Returns:
      LocalTime SMF2INTME Time
      See Also:
    • smf2intmeRawValue

      public long smf2intmeRawValue()
      SMF2INTME raw value
      Returns:
      long SMF2INTME value
    • smf2indte

      public LocalDate smf2indte()
      SMF2INDTE as a LocalDate.
      Returns:
      LocalDate SMF2INDTE Date
      See Also:
    • smf2indteRawValue

      public int smf2indteRawValue()
      SMF2INDTE raw value.
      Returns:
      int SMF2INDTE value
    • smf2icnt

      public long smf2icnt()
      SMF2ICNT value.
      Returns:
      long SMF2ICNT value
    • smf2ihashmeth

      public int smf2ihashmeth()
      SMF2IHASHMETH value.
      Returns:
      int SMF2IHASHMETH value
    • smf2ihashmethSha1

      public boolean smf2ihashmethSha1()
      Return true if SHA1 bit in smf2ihashmeth() is set.
      Returns:
      boolean SHA1 bit is set in smf2ihashmeth()

      SHA1 = 0x80

    • smf2ihashmethSha256

      public boolean smf2ihashmethSha256()
      Return true if SHA256 bit in smf2ihashmeth() is set.
      Returns:
      boolean SHA256 bit is set in smf2ihashmeth()

      SHA256 = 0x40

    • smf2ihashmethSha384

      public boolean smf2ihashmethSha384()
      Return true if SHA384 bit in smf2ihashmeth() is set.
      Returns:
      boolean SHA384 bit is set in smf2ihashmeth()

      SHA384 = 0x20

    • smf2ihashmethSha512

      public boolean smf2ihashmethSha512()
      Return true if SHA512 bit in smf2ihashmeth() is set.
      Returns:
      boolean SHA512 bit is set in smf2ihashmeth()

      SHA512 = 0x10

    • smf2isigtype

      public int smf2isigtype()
      SMF2ISIGTYPE value.
      Returns:
      int SMF2ISIGTYPE value
    • smf2isigtypeRsa

      public boolean smf2isigtypeRsa()
      Return true if RSA bit in smf2isigtype() is set.
      Returns:
      boolean RSA bit is set in smf2isigtype()

      RSA = 0x80

    • smf2isigtypeEcdsa

      public boolean smf2isigtypeEcdsa()
      Return true if ECDSA bit in smf2isigtype() is set.
      Returns:
      boolean ECDSA bit is set in smf2isigtype()

      ECDSA = 0x40

    • smf2itokenname

      public String smf2itokenname()
      SMF2ITOKENNAME value.
      Returns:
      String SMF2ITOKENNAME value
    • smf2irtypx

      public int smf2irtypx()
      SMF2IRTYPX value.
      Returns:
      int SMF2IRTYPX value
    • smf2isiglen

      public int smf2isiglen()
      SMF2ISIGLEN value.
      Returns:
      int SMF2ISIGLEN value
    • smf2isig

      public byte[] smf2isig()
      SMF2ISIG data.
      Returns:
      byte[] SMF2ISIG data
    • selfDefiningSection

      public IntervalSelfDefiningSection selfDefiningSection()
      Get the self defining section for this record, or null if there is no self defining section
      Returns:
      IntervalSelfDefiningSection the self defining section or null
    • alternateSignatures

      public List<IntervalAlternateSignature> alternateSignatures()
      Get a List containing Alternate Signatures from the record
      Returns:
      a list of IntervalAlternateSignature (possibly empty)