AESËã·¨javaʵÏÖdzÎö
java jce¶ÔaesËã·¨ÓкܺõÄÖ§³Ö£¬µ«ÊÇĬÈÏ°²×°µÄJDK»òÕßJREÊDz»ÄÜÖ§³Öaes192bitÃÜÔ¿ºÍaes256bitÃÜÔ¿Á½ÖÖËã·¨µÄ£¬ÐèÒªµ½sun¹Ù·½ÏÂÔØJava(TM) Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files£¬ÒÔÏÂÊÇjce unilimited strength jurisdiction policy files 6µÄ¹Ù·½ÏÂÔصØÖ·£º
https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jce_policy-6-oth-JPR@CDS-CDS_Developer
ÏÂÔغó½âѹÎļþ£¬½«ÀïÃæµÄÎļþ¿½±´µ½
<java-home>/lib/security [Unix]
<java-home>\lib\security [Win32]
¸²¸ÇÔÏȵÄjarÎļþ£¬ÇëÏȱ¸·ÝÔÏȵÄjarÎļþ£¬ÒÔ·ÀÄãÐèÒª»Ö¸´ÃÜÔ¿³¤¶ÈµÄÏÞÖÆ£¬ÕâÀïÐèҪעÒâµÄÊÇÈç¹ûÊÇ°²×°µÄjdk£¬jdkĿ¼ÖеÄjreÏÂÃæµÄlib\securityϵÄÎļþÒ²ÐèÒª¸²¸Ç¡£Íê³ÉÕâ¸ö²½ÖèÖ®ºó¾Í¿ÉÒÔʹÓò»ÏÞÖÆÃÜÔ¿³¤¶ÈµÄaesËã·¨ÁË£¬¼òµ¥µÄʵÏÖ´úÂëÈçÏ£º
KeyGenerator kgen = KeyGenerator.getInstance("AES");
kgen.init(192); // 192 and 256 bits also available£¬ÕâÒ»²½ÊÇ·ñÓа²×°jce unlimited strength jurisdiction policy files ¶¼²»»á³öÏÖÒì³£
Generate the secret key specs.
SecretKey skey = kgen.generateKey();
byte[] raw = skey.getEncoded();
&n
Ïà¹ØÎĵµ£º
import java.util.LinkedList;
public abstract class Manager {
private String mThreadPoolName = null;
......
JXLµÄ´òÓ¡ÉèÖÃÔÚjxl.SheetSettingsÕâ¸öÀàÖУ¬ÎÒÃÇ¿ÉÒÔͨ¹ý·½·¨Sheet£¨»òÕßWritableSheet£©#getSettings()»ñÈ¡¡£
1.Ò³Ãæ
1.1·½Ïò
SheetSetting#setOrientation(PageOrientation po)£»
²ÎÊý£º PageOrientation#LANDSCAPE ºáÏò´òÓ¡
PageOrientation# PO ......
The clone( ) method generates a duplicate copy of the object on which it is called. Only classes that implement the Cloneable interface can be cloned.
...clone()²úÉúÁËÒ»¸öµ÷ÓÃËüµÄ¶ÔÏóµÄ¸´ÖÆ;Ö»ÓÐʵÏÖÁËCloneable½Ó¿ÚµÄÀà²Å¿ÉÒÔ±»¸´ÖÆ¡£
The Cloneable interface defines no ......
1. Òì³£»úÖÆ
Òì³£»úÖÆÊÇÖ¸µ±³ÌÐò³öÏÖ´íÎóºó£¬³ÌÐòÈçºÎ´¦Àí¡£¾ßÌåÀ´Ëµ£¬Òì³£»úÖÆÌṩÁ˳ÌÐòÍ˳öµÄ°²È«Í¨µÀ¡£µ±³öÏÖ´íÎóºó£¬³ÌÐòÖ´ÐеÄÁ÷³Ì·¢Éú¸Ä±ä£¬³ÌÐòµÄ¿ØÖÆȨתÒƵ½Òì³£´¦ÀíÆ÷¡£
´«Í³µÄ´¦ÀíÒì³£µÄ°ì·¨ÊÇ£¬º¯Êý·µ»ØÒ»¸öÌØÊâµÄ½á¹ûÀ´±íʾ³öÏÖÒì³££¨Í ......
1¡¢Óï·¨£º±ØÐë±È½ÏÊìϤ£¬ÔÚд´úÂëµÄʱºòIDEµÄ±à¼Æ÷¶ÔijһÐб¨´íÓ¦¸ÃÄܹ»¸ù¾Ý±¨´íÐÅÏ¢ÖªµÀÊÇʲôÑùµÄÓï·¨´íÎó²¢ÇÒÖªµÀÈκÎÐÞÕý¡£
2¡¢ÃüÁ±ØÐëÊìϤJDK´øµÄһЩ³£ÓÃÃüÁî¼°Æä³£ÓÃÑ¡ÏÃüÁîÖÁÉÙÐèÒªÊìϤ£ºappletviewer¡¢ HtmlConverter¡¢jar¡¢ java¡¢javac¡¢javadoc¡¢javap¡¢javaw¡¢ ......