Package com.blackhillsoftware.smf.smf2
Class Smf2GroupRecord
java.lang.Object
com.blackhillsoftware.smf.Data
com.blackhillsoftware.smf.SmfData
com.blackhillsoftware.smf.SmfRecord
com.blackhillsoftware.smf.smf2.Smf2GroupRecord
Mapping for SMF type 2 Group record.
Typically you would obtain Smf2GroupRecords by reading SmfRecords and using
new
Smf2GroupRecord(SmfRecord)
to create the specialized record after determining the record type and subtype.
-
Constructor Summary
ConstructorDescriptionSmf2GroupRecord
(byte[] data) Constructs an Smf2Record from the specified byte array.Smf2GroupRecord
(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 FIRSTGROUP bit insmf2gflg2()
is set.static Smf2GroupRecord
from
(byte[] data) Constructs an Smf2GroupRecord from the specified byte array.static Smf2GroupRecord
Constructs a new Smf2GroupRecord from an existing SMF record.boolean
Return true if GROUPHASSUBTYPE bit insmf2gflg2()
is set.int
SMF2GRTYPE or SMF2GRTYPX value.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.Get the self defining section for this record, or null if there is no self defining sectionlong
smf2gcnt()
SMF2GCNT value.smf2gdte()
SMF2GDTE as a LocalDate.int
SMF2GDTE raw value.SMF2GFDTE as a LocalDate.int
SMF2GFDTE raw value.int
smf2gflg()
SMF2GFLG value.int
SMF2GFLG2 value.SMF2GFTME as a LocalTime.long
SMF2GFTME raw valueint
SMF2GHASHMETH value.boolean
Return true if SHA1 bit insmf2ghashmeth()
is set.boolean
Return true if SHA256 bit insmf2ghashmeth()
is set.boolean
Return true if SHA384 bit insmf2ghashmeth()
is set.boolean
Return true if SHA512 bit insmf2ghashmeth()
is set.int
smf2glen()
SMF2GLEN value.SMF2GRSID value.int
smf2grty()
SMF2GRTY value.int
Deprecated.int
SMF2GRTYPX value.int
smf2gseg()
SMF2GSEG value.smf2gsid()
SMF2GSID value.byte[]
smf2gsig()
SMF2GSIG data.int
SMF2GSIGLEN value.int
SMF2GSIGTYPE value.boolean
Return true if ECDSA bit insmf2gsigtype()
is set.boolean
Return true if RSA bit insmf2gsigtype()
is set.int
smf2gstp()
SMF2GSTP value.int
SMF2GSTYPE value.smf2gtme()
SMF2GTME as a LocalTime.long
SMF2GTME raw valueSMF2GTOKENNAME value.smf2gwid()
SMF2GWID value.boolean
Return true if this group type is in SMF2GRTYPX.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
-
Smf2GroupRecord
public Smf2GroupRecord(byte[] data) Constructs an Smf2Record from the specified byte array.- Parameters:
data
- a byte array containing the SMF record data
-
Smf2GroupRecord
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 Smf2GroupRecord from an existing SMF record. The 2 records share the same data byte array.- Parameters:
record
- an existing SMF record
-
from
Constructs an Smf2GroupRecord from the specified byte array.- Parameters:
data
- a byte array containing the SMF record data
-
smf2glen
public int smf2glen()SMF2GLEN value.- Returns:
- int SMF2GLEN value
-
smf2gseg
public int smf2gseg()SMF2GSEG value.- Returns:
- int SMF2GSEG value
-
smf2gflg
public int smf2gflg()SMF2GFLG value.- Returns:
- int SMF2GFLG value
-
smf2grty
public int smf2grty()SMF2GRTY value.- Returns:
- int SMF2GRTY value
-
smf2gtme
SMF2GTME as a LocalTime.- Returns:
- LocalTime SMF2GTME Time
- See Also:
-
smf2gtmeRawValue
public long smf2gtmeRawValue()SMF2GTME raw value- Returns:
- long SMF2GTME value
-
smf2gdte
SMF2GDTE as a LocalDate.- Returns:
- LocalDate SMF2GDTE Date
- See Also:
-
smf2gdteRawValue
public int smf2gdteRawValue()SMF2GDTE raw value.- Returns:
- int SMF2GDTE value
-
smf2gsid
SMF2GSID value.- Returns:
- String SMF2GSID value
-
smf2gwid
SMF2GWID value.- Returns:
- String SMF2GWID value
-
smf2gstp
public int smf2gstp()SMF2GSTP value.- Returns:
- int SMF2GSTP value
-
smf2grsid
SMF2GRSID value.- Returns:
- String SMF2GRSID value
-
smf2gflg2
public int smf2gflg2()SMF2GFLG2 value.- Returns:
- int SMF2GFLG2 value
-
firstGroup
public boolean firstGroup()Return true if FIRSTGROUP bit insmf2gflg2()
is set.- Returns:
- boolean FIRSTGROUP bit is set in smf2gflg2()
FIRSTGROUP = 0x80
-
groupHasSubtype
public boolean groupHasSubtype()Return true if GROUPHASSUBTYPE bit insmf2gflg2()
is set.- Returns:
- boolean GROUPHASSUBTYPE bit is set in smf2gflg2()
GROUPHASSUBTYPE = 0x40
-
typeInSmf2grtypx
public boolean typeInSmf2grtypx()Return true if this group type is in SMF2GRTYPX.- Returns:
- boolean SMF2GRTYPX bit is set in smf2gflg2()
SMF2GRTYPX = 0x20
-
hasOA55526
public boolean hasOA55526()Return true if this record indicates that the fix for OA55526 was applied.- Returns:
- boolean the 0x10 bit is set in smf2gflg2()
-
hasSelfDefiningSection
public boolean hasSelfDefiningSection()Return true if this record has a self defining section.- Returns:
- boolean the 0x08 bit is set in smf2gflg2()
-
groupRecordType
public int groupRecordType()SMF2GRTYPE or SMF2GRTYPX value. Checks the bit to determine whether the value is in SMF2GRTYPE or SMF2GRTYPX and returns the appropriate value.- Returns:
- int Group Record Type
-
smf2grtype
Deprecated.usegroupRecordType()
instead.SMF2GRTYPE value. This field is not used in z/OS 2.3 and above. UsegroupRecordType()
to return SMF2GRTYPE or SMF2GRTYPX depending on the flag orsmf2grtypx()
for z/OS 2.3+- Returns:
- int SMF2GRTYPE value
-
smf2gstype
public int smf2gstype()SMF2GSTYPE value.- Returns:
- int SMF2GSTYPE value
-
smf2gftme
SMF2GFTME as a LocalTime.- Returns:
- LocalTime SMF2GFTME Time
- See Also:
-
smf2gftmeRawValue
public long smf2gftmeRawValue()SMF2GFTME raw value- Returns:
- long SMF2GFTME value
-
smf2gfdte
SMF2GFDTE as a LocalDate.- Returns:
- LocalDate SMF2GFDTE Date
- See Also:
-
smf2gfdteRawValue
public int smf2gfdteRawValue()SMF2GFDTE raw value.- Returns:
- int SMF2GFDTE value
-
smf2gcnt
public long smf2gcnt()SMF2GCNT value.- Returns:
- long SMF2GCNT value
-
smf2ghashmeth
public int smf2ghashmeth()SMF2GHASHMETH value.- Returns:
- int SMF2GHASHMETH value
-
smf2ghashmethSha1
public boolean smf2ghashmethSha1()Return true if SHA1 bit insmf2ghashmeth()
is set.- Returns:
- boolean SHA1 bit is set in smf2ghashmeth()
SHA1 = 0x80
-
smf2ghashmethSha256
public boolean smf2ghashmethSha256()Return true if SHA256 bit insmf2ghashmeth()
is set.- Returns:
- boolean SHA256 bit is set in smf2ghashmeth()
SHA256 = 0x40
-
smf2ghashmethSha384
public boolean smf2ghashmethSha384()Return true if SHA384 bit insmf2ghashmeth()
is set.- Returns:
- boolean SHA384 bit is set in smf2ghashmeth()
SHA384 = 0x20
-
smf2ghashmethSha512
public boolean smf2ghashmethSha512()Return true if SHA512 bit insmf2ghashmeth()
is set.- Returns:
- boolean SHA512 bit is set in smf2ghashmeth()
SHA512 = 0x10
-
smf2gsigtype
public int smf2gsigtype()SMF2GSIGTYPE value.- Returns:
- int SMF2GSIGTYPE value
-
smf2gsigtypeRsa
public boolean smf2gsigtypeRsa()Return true if RSA bit insmf2gsigtype()
is set.- Returns:
- boolean RSA bit is set in smf2gsigtype()
RSA = 0x80
-
smf2gsigtypeEcdsa
public boolean smf2gsigtypeEcdsa()Return true if ECDSA bit insmf2gsigtype()
is set.- Returns:
- boolean ECDSA bit is set in smf2gsigtype()
ECDSA = 0x40
-
smf2gtokenname
SMF2GTOKENNAME value.- Returns:
- String SMF2GTOKENNAME value
-
smf2grtypx
public int smf2grtypx()SMF2GRTYPX value.- Returns:
- int SMF2GRTYPX value
-
smf2gsiglen
public int smf2gsiglen()SMF2GSIGLEN value.- Returns:
- int SMF2GSIGLEN value
-
smf2gsig
public byte[] smf2gsig()SMF2GSIG data.- Returns:
- byte[] SMF2GSIG data
-
selfDefiningSection
Get the self defining section for this record, or null if there is no self defining section- Returns:
- GroupSelfDefiningSection the self defining section or null
-
alternateSignatures
Get a List containing Alternate Signatures from the record- Returns:
- a list of GroupAlternateSignature (possibly empty)
-
groupRecordType()
instead.