java¼ÓÃܺÍÊý×ÖÇ©Ãû5 Êý×ÖÖ¤Êé
×î½ü³õ²½½Ó´¥ÁËÏÂJava¼ÓÃܺÍÊý×ÖÇ©ÃûµÄÏà¹ØÄÚÈÝ£¬ÎÒѧϰµÄ¹ý³Ì´ó¸Å·ÖÎå²½£º
1£©ÏûÏ¢ÕªÒª
2£©Ë½Ô¿¼ÓÃÜ
3£©¹«Ô¿¼ÓÃÜ
4£©Êý×ÖÇ©Ãû
5£©Êý×ÖÖ¤Êé
ÏÂÃæµÄ´úÂëÊǵÚÎ岿·Ö£ºÊý×ÖÖ¤Êé
±ÈÆðÇ°ËIJ¿·Ö£¬Õⲿ·Ö¾ÍÉÔ΢Âé·³µãÁË£¬ÎÒÏëÎÒÓбØÒª¸ø¸Õ¸Õ½Ó´¥Êý×ÖÖ¤ÊéµÄÅóÓÑÃÇ£¬°ÑÔÚ±¾µØÅÜͨÏÂÃæ´úÂëµÄÇ°Ìá˵һÏ£º
1´ËÀýÊǶԓÊý×ÖÖ¤Êé”ÎļþµÄ²Ù×÷£¬ËùÒÔ£¬ÄãÏÈÒªÔÚ±¾µØ½¨Á¢Ò»¸öÖ¤Êé¿â
2½¨Á¢Ö¤Êé¿â(ÃÜÔ¿¿â)
cmdÖÐÊäÈ룺C:/>keytool -genkey -alias TestCertification -keyalg RSA -keysize 1024 -keystore BocsoftKeyLib -validity 365
Òâ˼ÊÇ£ºÔÚcÅÌĿ¼Ï´´½¨Ò»¸öÖ¤Ê飬ָ¶¨Ö¤Êé¿âΪBocsoftKeyLib£¬´´½¨±ðÃûΪTestCertificationµÄÒ»ÌõÖ¤Ê飬ËüÖ¸¶¨Óà RSA Ëã·¨Éú³É£¬ÇÒÖ¸¶¨ÃÜÔ¿³¤¶ÈΪ1024£¬Ö¤ÊéÓÐЧÆÚΪ1Äê
½¨Á¢¿âµÄ¹ý³ÌÖлáѯÎÊÎÊÌ⣬Ïê¼ûµÚ5Ìõ
3½«Ö¤Êéµ¼³öµ½Ö¤ÊéÎļþTC.cer
ÔÚcmdÖÐÊäÈ룺C:/>keytool -export -alias TestCertification -file TC.cer -keystore BocsoftKeyLib
Òâ˼ÊÇ£º½«°ÑÖ¤Êé¿âBocsoftKeyLibÖеıðÃûΪTestCertificationµÄÖ¤Êéµ¼³öµ½TC.cerÖ¤ÊéÎļþÖУ¬Ëü°üº¬Ö¤ÊéÖ÷ÌåµÄÐÅÏ¢¼°Ö¤ÊéµÄ¹«Ô¿£¬²»°üÀ¨Ë½Ô¿£¬¿ÉÒÔ¹«¿ª
4ÒÔÉÏ3²½¾Í»ù±¾ÉÏÍê³ÉÁËÖ¤ÊéµÄ²Ù×÷£¬ÏÂÃæ²Ù×÷ÊÇ¿ÉÑ¡µÄ
µ¼³öµÄÖ¤ÊéÎļþÎÞ·¨ÓÃÎı¾±à¼Æ÷ÕýÈ·ÏÔʾ£¬¿ÉÒÔÊäÈëÈçÏÂÃüÁȻºóÔÚÒÔ¼Çʱ¾ÐÎʽ´ò¿ªTC.cer¾ÍÄÜ¿´ÁË£¬¿´¿´´«ËµÖеÄÖ¤ÊéÀïµ½µ×дµÄʲô¹í¶«Î÷~~~
C:\>keytool -export -alias TestCertification -file TC.cer -keystore BocsoftKeyLib -storepass keystore -rfc
5ÔÚ´´½¨Ö¤Êé¿âʱ£¬ÏµÍ³»áѯÎÊÈçÏÂÎÊÌ⣺
ÊäÈëkeystoreÃÜÂ룺 keystore£¨ÄãÖ¤Êé¿âµÄÃÜÂ룩
ÄúµÄÃû×ÖÓëÐÕÊÏÊÇʲô£¿
[Unknown]£º miaozhuang
ÄúµÄ×éÖ¯µ¥Î»Ãû³ÆÊÇʲô£¿
[Unknown]£º csii
ÄúµÄ×éÖ¯Ãû³ÆÊÇʲô£¿
[Unknown]£º csii
ÄúËùÔڵijÇÊлòÇøÓòÃû³ÆÊÇʲô£¿
[Unknown]£º tianjin
ÄúËùÔÚµÄÖÝ»òÊ¡·ÝÃû³ÆÊÇʲô£¿
[Unknown]£º tianjin
¸Ãµ¥Î»µÄÁ½×Öĸ¹ú¼Ò´úÂëÊÇʲô
[Unknown]£º ch
CN=miaozhuang, OU=csii, O=csii, L=tianjin, ST=tianjin, C=ch ÕýÈ·Âð£¿
[·ñ]£º
ÉÏÃæµÄÐÅÏ¢¶¼ÊÇËæ±ãÊäÈëµÄ£¬Î޹شó¾Ö
´ËʱÊäÈ룺 y »Ø³µ¼´¿É£¨±ðÏñÎÒÒ»Ñù£¬Êä¸öyes……ɵËÀÁË£©
package security;
import java.security.*;
import
Ïà¹ØÎĵµ£º
ÎÒÔÚ×öVOS2009µÚ3·½½Ó¿Úµ÷Óã¬Í¨¹ýÕâ¸ö½Ó¿ÚÒª»ñÈ¡Óà¶îÏÔʾµ½webÉÏÓà¶î¡£
ÎÒÖªµÀjava´¦ÀíHTTP postÊý¾ÝÒÔ¼°webserviceÏà¹ØµÄÊý¾Ý£¬¿ÉÊǶÔÓÚvosÕâÖÖ½Ó¿ÚûŪ¹ý£¬²»Çå³þÔõôʵÏÖ£¬ÎÒ´ÓÍøÉÏÕÒÁËÏ£¬¿´µ½Óиö˵ÊÇͨ¹ýUDP·¢Ëͱ¨ÎÄʵÏֵģ¬µ«ÊDz»ÖªµÀÈçºÎÓÃjavaʵÏÖ£¬Âé·³ÓÐÖªµÀµÄ´Í½ÌÏ£¬Ð»Ð»£¡
ʾÀý±¨ÎĽṹ
OPTIONS sip:80 ......
Ò»¡¢Àí½â¶àÏß³Ì
¶àÏß³ÌÊÇÕâÑùÒ»ÖÖ»úÖÆ£¬ËüÔÊÐíÔÚ³ÌÐòÖв¢·¢Ö´Ðжà¸öÖ¸ÁîÁ÷£¬Ã¿¸öÖ¸ÁîÁ÷¶¼³ÆΪһ¸öỊ̈߳¬±Ë´Ë¼ä»¥Ïà¶ÀÁ¢¡£Ïß³ÌÓÖ³ÆΪÇáÁ¿¼¶½ø³Ì£¬ËüºÍ½ø³ÌÒ»ÑùÓµÓжÀÁ¢µÄÖ´ÐпØÖÆ£¬ÓɲÙ×÷ϵͳ¸ºÔðµ÷¶È£¬Çø±ðÔÚÓÚÏß³ÌûÓжÀÁ¢µÄ´æ´¢¿Õ¼ä£¬¶øÊǺÍËùÊô½ø³ÌÖеÄÆäËüÏ̹߳²ÏíÒ»¸ö´æ´¢¿Õ¼ä£¬ÕâʹµÃÏ̼߳äµÄ ......
¶àÏß³ÌÊÇjavaµÄÒ»¸öÓÅÊÆ£¬javaʹµÃ³ÌÐòÔ±¿ÉÒԺܷ½±ãµÄ½øÐжàÏ̳߳ÌÐò¿ª·¢¡£»ñµÃ¸üºÃµÄÐÔÄÜ¡£
¹ØÓÚ¶àÏ̵߳ĸÅÄîÒÔ¼°Ò»°ãµÄ¶àÏ̱߳à³Ì£¬±ÈÈçÈçºÎÒÔ¼°ÎªºÎʵÏÖrunnable½Ó¿Ú£¬ÎªºÎstop()»á±»DeprecatedµôµÈµÈ£¬Õâ¸öÇë¿´matrix֮ǰµÄ¶àÏ̱߳à³Ì»ù´¡»òÕßsunµÄjavaÎĵµ¡£
¹ØÓÚ¶àÏ̱߳à³Ì£¬Óм¸µãÕâÀïÒªÌáµ½µÄ£º
1¡£¼ÈÈ»stop( ......
Ó¦¸Ã¾ÍÊÇ°Ñjava ÀïÃæµÄ×é¼þ¸ãÃ÷°×
Servlet
ServletÊÇÒ»ÖÖ»ùÓÚwebµÄJava×é¼þ£¬ËüÓÉÈÝÆ÷¹ÜÀí£¬²¢¶¯Ì¬Éú³ÉÆäÄÚÈÝ
ÔòûÓÐͼÐνçÃ棬ÔËÐÐÔÚ·þÎñÆ÷¶Ë
ËüÃǶ¼ÓÐÒ»¸öÉú´æÖÜÆÚ£¬°üº¬init()ºÍdestroy()·½·¨
²»ÊǶÀÁ¢µÄÓ¦ÓóÌÐò£¬Ã»ÓÐmain()·½·¨
Ó봫ͳµÄCGIºÍÐí¶àÆäËûÀàËÆCGIµÄ¼¼ÊõÏà±È£¬Java Servlet¾ßÓиü¸ßµÄЧÂÊ£¬¸ ......
Thread-Per-Message PatternµÄ²ÎÓëÕߣº
1. Client£¨Î¯ÍÐÈË£©²ÎÓëÕß
Client²ÎÓëÕß»á¶ÔHost²ÎÓëÕß·¢³öÇëÇó¡£Client²ÎÓëÕß²¢²»ÖªµÀHost²ÎÓëÕß»áÈçºÎʵÏÖÕâ¸öÇëÇó¡£
2. Host²ÎÓëÕß
µ±Host²ÎÓëÕß½ÓÊÕµ½Client²ÎÓëÕßµÄÇëÇóʱ£¬»á½¨Á¢ÐµÄÏ̲߳¢Æô¶¯Ëü¡£
Õâ¸öеÄÏ ......