SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.7.3

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
45 17 0 0

Files

Class Bugs
net.sf.michaelo.tomcat.pac.KerbValidationInfo 1
net.sf.michaelo.tomcat.pac.Krb5AuthzDataDumpPrinter 1
net.sf.michaelo.tomcat.pac.PacInfoBuffer 2
net.sf.michaelo.tomcat.pac.PacSignatureData 1
net.sf.michaelo.tomcat.pac.UpnDnsInfo 1
net.sf.michaelo.tomcat.realm.ActiveDirectoryPrincipal 3
net.sf.michaelo.tomcat.realm.ActiveDirectoryRealm$User 4
net.sf.michaelo.tomcat.realm.asn1.OtherNameParseResult 4

net.sf.michaelo.tomcat.pac.KerbValidationInfo

Bug Category Details Line Priority
Check for oddness that won't work for negative numbers in net.sf.michaelo.tomcat.pac.KerbValidationInfo.getRpcUnicodeString(PacDataBuffer) STYLE IM_BAD_CHECK_FOR_ODD 367 Medium

net.sf.michaelo.tomcat.pac.Krb5AuthzDataDumpPrinter

Bug Category Details Line Priority
Switch statement found in net.sf.michaelo.tomcat.pac.Krb5AuthzDataDumpPrinter.dumpFile(Path, String, KerberosKey[]) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 201-213 Medium

net.sf.michaelo.tomcat.pac.PacInfoBuffer

Bug Category Details Line Priority
net.sf.michaelo.tomcat.pac.PacInfoBuffer.getData() may expose internal representation by returning PacInfoBuffer.data MALICIOUS_CODE EI_EXPOSE_REP 55 Medium
new net.sf.michaelo.tomcat.pac.PacInfoBuffer(long, long, BigInteger, byte[]) may expose internal representation by storing an externally mutable object into PacInfoBuffer.data MALICIOUS_CODE EI_EXPOSE_REP2 39 Medium

net.sf.michaelo.tomcat.pac.PacSignatureData

Bug Category Details Line Priority
net.sf.michaelo.tomcat.pac.PacSignatureData.getSignature() may expose internal representation by returning PacSignatureData.signature MALICIOUS_CODE EI_EXPOSE_REP 100 Medium

net.sf.michaelo.tomcat.pac.UpnDnsInfo

Bug Category Details Line Priority
Dead store to pos in new net.sf.michaelo.tomcat.pac.UpnDnsInfo(byte[]) STYLE DLS_DEAD_LOCAL_STORE 93 Medium

net.sf.michaelo.tomcat.realm.ActiveDirectoryPrincipal

Bug Category Details Line Priority
net.sf.michaelo.tomcat.realm.ActiveDirectoryPrincipal.getAdditionalAttributes() may expose internal representation by returning ActiveDirectoryPrincipal.additionalAttributes MALICIOUS_CODE EI_EXPOSE_REP 140 Medium
net.sf.michaelo.tomcat.realm.ActiveDirectoryPrincipal.getGssCredential() may expose internal representation by returning ActiveDirectoryPrincipal.gssCredential MALICIOUS_CODE EI_EXPOSE_REP 107 Medium
new net.sf.michaelo.tomcat.realm.ActiveDirectoryPrincipal(GSSName, Sid, List, GSSCredential, Map) may expose internal representation by storing an externally mutable object into ActiveDirectoryPrincipal.gssCredential MALICIOUS_CODE EI_EXPOSE_REP2 70 Medium

net.sf.michaelo.tomcat.realm.ActiveDirectoryRealm$User

Bug Category Details Line Priority
net.sf.michaelo.tomcat.realm.ActiveDirectoryRealm$User.getAdditionalAttributes() may expose internal representation by returning ActiveDirectoryRealm$User.additionalAttributes MALICIOUS_CODE EI_EXPOSE_REP 1076 Medium
net.sf.michaelo.tomcat.realm.ActiveDirectoryRealm$User.getRoles() may expose internal representation by returning ActiveDirectoryRealm$User.roles MALICIOUS_CODE EI_EXPOSE_REP 1072 Medium
new net.sf.michaelo.tomcat.realm.ActiveDirectoryRealm$User(GSSName, Sid, List, Map) may expose internal representation by storing an externally mutable object into ActiveDirectoryRealm$User.additionalAttributes MALICIOUS_CODE EI_EXPOSE_REP2 1060 Medium
new net.sf.michaelo.tomcat.realm.ActiveDirectoryRealm$User(GSSName, Sid, List, Map) may expose internal representation by storing an externally mutable object into ActiveDirectoryRealm$User.roles MALICIOUS_CODE EI_EXPOSE_REP2 1059 Medium

net.sf.michaelo.tomcat.realm.asn1.OtherNameParseResult

Bug Category Details Line Priority
net.sf.michaelo.tomcat.realm.asn1.OtherNameParseResult.getTypeId() may expose internal representation by returning OtherNameParseResult.typeId MALICIOUS_CODE EI_EXPOSE_REP 37 Medium
net.sf.michaelo.tomcat.realm.asn1.OtherNameParseResult.getValue() may expose internal representation by returning OtherNameParseResult.value MALICIOUS_CODE EI_EXPOSE_REP 46 Medium
new net.sf.michaelo.tomcat.realm.asn1.OtherNameParseResult(byte[], byte[]) may expose internal representation by storing an externally mutable object into OtherNameParseResult.typeId MALICIOUS_CODE EI_EXPOSE_REP2 27 Medium
new net.sf.michaelo.tomcat.realm.asn1.OtherNameParseResult(byte[], byte[]) may expose internal representation by storing an externally mutable object into OtherNameParseResult.value MALICIOUS_CODE EI_EXPOSE_REP2 28 Medium