欢迎来到天天文库
浏览记录
ID:34524624
大小:25.88 KB
页数:5页
时间:2019-03-07
《overview why java is secure》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Overview•WhyJavaissecureEvolutionofJavaSecurity•JDK1.0securitymodel•JDK1.1.xsecuritymodel•JDK1.2securitymodelOlgaKornievskaiaWhyisJavasecure?WhyisJavasecure(cont.)•Completesourcecodeispublished•Garbagecollection:avoidscommonbugs•Well-definedlanguage–failingtofreememoryonceisnolongerneeded–a
2、llprimitivetypesareofaspecificsize–accidentlyfreeingthesamememorytwice–alloperationsperformedinaspecificorder•Compile-TimeChecking•Nopointers–explicitruntimecheckforcastingobjects–nopointerarithmetic–allreferencesarecheckedforvalidity–allreferencesviasymbolicnames•accessofuninitializedvaria
3、bles•referencingaprivatevariable/methodWhyisJavasecure(cont.)WhyisJavasecure(cont.)•Bytecodeverifier:•SecurityManager:–stackoverflows–enforcesboundariesaroundthesandbox–invalidregisteraccessesandstores–consultedoneachprivilegedaction–invalidparameterstobytecodeinstructions–loadedatstart-up,
4、can’tbeextended,–illegaldataconversionoverriddenorreplaced.•Classloader:–definesalocalnamespace1Inshort...OriginalSecurityModel•Well-defined,type-safelanguage•Localcodeistrustedtohavefullaccess•Checksbycompiler•Downloadedcodeis•Checksbyverifiernottrusted•ChecksbySecurityManagerWhatappletsCA
5、N’Tdo?ExtendedSecurityModel•Read,write,orgetinformationaboutafile•JDK1.1.xintroducedsignedapplets•executeOScommandsornativecode•Signedappletsgain•loadlibrariesfullaccesstosystem•establishnetworkconnectiontoanyresourcesmachineotherthanapplet’shostmachine•Unsignedappletsstilltreatedasuntruste
6、dappletsExtendedSecurityModelCapabilitiesBasedModel•Microsoft:Trust-based•Netscape:Capabilities•Principle:representsthe“who”SecurityModelModel•Target:representsthe“what”–allpermissionsare–queryusersasgrantedup-frontpermissionsarerequested•Privilege:denies/authorizestoaccessTargetby–mostofth
7、etime,no–codemodificationisPrincipleadditionalcodeisneededalwaysrequired•PrivilegeManager:trackswhichprinciplesare–threelevelsofaccess–fine-grainedaccessallowedtoaccesswhichtargetscontrolcontrol2NetscapesecuritystepsTodownloadaJARfile•Modifyyourapplicati
此文档下载收益归作者所有