Package com.blackhillsoftware.smf.smf2
Class Smf2IntervalRecord
java.lang.Object
com.blackhillsoftware.smf.Data
com.blackhillsoftware.smf.SmfData
com.blackhillsoftware.smf.SmfRecord
com.blackhillsoftware.smf.smf2.Smf2IntervalRecord
-
Constructor Summary
ConstructorDescriptionSmf2IntervalRecord
(byte[] data) Constructs an Smf2Record from the specified byte array.Smf2IntervalRecord
(SmfRecord record) Constructs a new Smf2Record from an existing SMF record. -
Method Summary
Modifier and TypeMethodDescriptionGet a List containing Alternate Signatures from the recordboolean
Return true if FIRSTINTERVAL bit insmf2iflg2()
is set.static Smf2IntervalRecord
from
(byte[] data) Constructs an Smf2IntervalRecord from the specified byte array.static Smf2IntervalRecord
Constructs a new Smf2IntervalRecord from an existing SMF record.boolean
Return true if this record indicates that the fix for OA55526 was applied.boolean
Return true if this record has a self defining section.boolean
Return true if this is a Close Interval record - the CLOSEINTERVAL bit insmf2iflg2()
is set.boolean
Return true if this interval is the result of a HALT - the HALTINTERVAL bit insmf2iflg2()
is set.boolean
Return true if INTERVALHASSUBTYPE bit insmf2iflg2()
is set.boolean
Return true if this interval contains new cryptography options - NEWINTERVALCRYPTOOPTIONS bit insmf2iflg2()
is set.int
SMF2IRTYPE or SMF2IRTYPX value.Get the self defining section for this record, or null if there is no self defining sectionlong
smf2icnt()
SMF2ICNT value.smf2idte()
SMF2IDTE as a LocalDate.int
SMF2IDTE raw value.SMF2IFDTE as a LocalDate.int
SMF2IFDTE raw value.int
smf2iflg()
SMF2IFLG value.int
SMF2IFLG2 value.SMF2IFTME as a LocalTime.long
SMF2IFTME raw valueint
SMF2IHASHMETH value.boolean
Return true if SHA1 bit insmf2ihashmeth()
is set.boolean
Return true if SHA256 bit insmf2ihashmeth()
is set.boolean
Return true if SHA384 bit insmf2ihashmeth()
is set.boolean
Return true if SHA512 bit insmf2ihashmeth()
is set.SMF2ILDTE as a LocalDate.int
SMF2ILDTE raw value.int
smf2ilen()
SMF2ILEN value.SMF2ILTME as a LocalTime.long
SMF2ILTME raw valueSMF2INDTE as a LocalDate.int
SMF2INDTE raw value.SMF2INTME as a LocalTime.long
SMF2INTME raw valueSMF2IRSID value.int
smf2irty()
SMF2IRTY value.int
Deprecated.int
SMF2IRTYPX value.int
smf2iseg()
SMF2ISEG value.smf2isid()
SMF2ISID value.byte[]
smf2isig()
SMF2ISIG data.int
SMF2ISIGLEN value.int
SMF2ISIGTYPE value.boolean
Return true if ECDSA bit insmf2isigtype()
is set.boolean
Return true if RSA bit insmf2isigtype()
is set.int
smf2istp()
SMF2ISTP value.int
SMF2ISTYPE value.smf2itme()
SMF2ITME as a LocalTime.long
SMF2ITME raw valueSMF2ITOKENNAME value.smf2iwid()
SMF2IWID value.boolean
Return true if this interval type is in SMF2IRTYPX.Methods inherited from class com.blackhillsoftware.smf.SmfRecord
createSection, extendedHeader, extendedHeader, getTriplet, hasSubtypes, hasSubtypes, recordLength, recordLength, recordType, recordType, sanityCheck, smfDate, smfDate, smfDateTime, smfDateTime, smfhdr1Flag, smfhdr1Iefu86, smfhdr1Len, smfhdr1Len, smfhdr1Stcke, smfhdr1StckeRawValue, smfhdr1Tzo, smfhdr1TzoRawValue, smfhdr1Version, smfhdr1Version, smfTime, smfTime, subSystem, subSystem, subType, subType, system, system
-
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
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
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
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
SMF2ITME as a LocalTime.- Returns:
- LocalTime SMF2ITME Time
- See Also:
-
smf2itmeRawValue
public long smf2itmeRawValue()SMF2ITME raw value- Returns:
- long SMF2ITME value
-
smf2idte
SMF2IDTE as a LocalDate.- Returns:
- LocalDate SMF2IDTE Date
- See Also:
-
smf2idteRawValue
public int smf2idteRawValue()SMF2IDTE raw value.- Returns:
- int SMF2IDTE value
-
smf2isid
SMF2ISID value.- Returns:
- String SMF2ISID value
-
smf2iwid
SMF2IWID value.- Returns:
- String SMF2IWID value
-
smf2istp
public int smf2istp()SMF2ISTP value.- Returns:
- int SMF2ISTP value
-
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 insmf2iflg2()
is set.- Returns:
- boolean FIRSTINTERVAL bit is set in smf2iflg2()
FIRSTINTERVAL = 0x80
-
intervalHasSubtype
public boolean intervalHasSubtype()Return true if INTERVALHASSUBTYPE bit insmf2iflg2()
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 insmf2iflg2()
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 insmf2iflg2()
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 insmf2iflg2()
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.useintervalRecordType()
instead.SMF2IRTYPE value. This field is not used in z/OS 2.3 and above. UseintervalRecordType()
to return SMF2IRTYPE or SMF2IRTYPX depending on flags orsmf2irtypx()
for z/OS 2.3+- Returns:
- int SMF2IRTYPE value
-
smf2istype
public int smf2istype()SMF2ISTYPE value.- Returns:
- int SMF2ISTYPE value
-
smf2iftme
SMF2IFTME as a LocalTime.- Returns:
- LocalTime SMF2IFTME Time
- See Also:
-
smf2iftmeRawValue
public long smf2iftmeRawValue()SMF2IFTME raw value- Returns:
- long SMF2IFTME value
-
smf2ifdte
SMF2IFDTE as a LocalDate.- Returns:
- LocalDate SMF2IFDTE Date
- See Also:
-
smf2ifdteRawValue
public int smf2ifdteRawValue()SMF2IFDTE raw value.- Returns:
- int SMF2IFDTE value
-
smf2iltme
SMF2ILTME as a LocalTime.- Returns:
- LocalTime SMF2ILTME Time
- See Also:
-
smf2iltmeRawValue
public long smf2iltmeRawValue()SMF2ILTME raw value- Returns:
- long SMF2ILTME value
-
smf2ildte
SMF2ILDTE as a LocalDate.- Returns:
- LocalDate SMF2ILDTE Date
- See Also:
-
smf2ildteRawValue
public int smf2ildteRawValue()SMF2ILDTE raw value.- Returns:
- int SMF2ILDTE value
-
smf2intme
SMF2INTME as a LocalTime.- Returns:
- LocalTime SMF2INTME Time
- See Also:
-
smf2intmeRawValue
public long smf2intmeRawValue()SMF2INTME raw value- Returns:
- long SMF2INTME value
-
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 insmf2ihashmeth()
is set.- Returns:
- boolean SHA1 bit is set in smf2ihashmeth()
SHA1 = 0x80
-
smf2ihashmethSha256
public boolean smf2ihashmethSha256()Return true if SHA256 bit insmf2ihashmeth()
is set.- Returns:
- boolean SHA256 bit is set in smf2ihashmeth()
SHA256 = 0x40
-
smf2ihashmethSha384
public boolean smf2ihashmethSha384()Return true if SHA384 bit insmf2ihashmeth()
is set.- Returns:
- boolean SHA384 bit is set in smf2ihashmeth()
SHA384 = 0x20
-
smf2ihashmethSha512
public boolean smf2ihashmethSha512()Return true if SHA512 bit insmf2ihashmeth()
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 insmf2isigtype()
is set.- Returns:
- boolean RSA bit is set in smf2isigtype()
RSA = 0x80
-
smf2isigtypeEcdsa
public boolean smf2isigtypeEcdsa()Return true if ECDSA bit insmf2isigtype()
is set.- Returns:
- boolean ECDSA bit is set in smf2isigtype()
ECDSA = 0x40
-
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
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
Get a List containing Alternate Signatures from the record- Returns:
- a list of IntervalAlternateSignature (possibly empty)
-
intervalRecordType()
instead.