Edit C:\Users\Admin\.m2\repository\org\dspace\handle\6.2\net\handle\server\SimpleSetup.class
???? 0? ?? ?? ??? ??? ? ? ? ???? ???? ?? ?????? ?? ??? ??? ????? ???????????? ?? ???? -? ??? 1?? 1?? 1?? 1???? ?? ;?? >? >? ??? B??????? ? 1?????? ?? ???????? ??????? ]??? _? ?? _? _? ??? ??? ?? ?`&\ ???? ????????? ? - ? ? ? ? ?! "# ?$% ?&'() ?*+,-./ ?0 ?1 ?2 ?34 156789:;<=>?@A ?BCDEF ?GHIJKLMNOPQ RSTUVWXY ?Z[\]^_ ?`ab ?c ?d ?e ?fghijklmnopqr ?s ?tuvwxyz{|} ?~ ? ???? DEFAULT_YES Ljava/lang/String; ConstantValue DEFAULT_NO DEFAULT_INTERVAL DEFAULT_WEEKDAY NO_DEFAULT I???? NO_LIMIT in Ljava/io/DataInputStream; out Ljava/io/PrintStream; err <init> ()V Code LineNumberTable LocalVariableTable this Lnet/handle/server/SimpleSetup; main ([Ljava/lang/String;)V e Ljava/lang/Exception; req "Lnet/handle/hdllib/GenericRequest; resolver "Lnet/handle/hdllib/HandleResolver; resp $Lnet/handle/hdllib/AbstractResponse; replSrcAddr Ljava/net/InetAddress; line replSrcPort needReplicationInfo Z configDirName configDir Ljava/io/File; serverType isPrimary listenAddr port httpPort logAccesses interval replPrivKeyFile replPubKeyFile adminPrivKeyFile adminPubKeyFile replicationSiteFile generateReplKeys generateAdminKeys replicationAdminStr replicationAuthStr replicationSite Lnet/handle/hdllib/SiteInfo; siteVersion siteDescription orgName contactName contactPhone contactEmail disableUDP generateKeys privKeyFile pubKeyFile siteInfo siteOut Ljava/io/FileOutputStream; contactData Lnet/handle/util/StreamTable; contactDataFile config finalMessage argv [Ljava/lang/String; prompt 1(Ljava/io/File;Ljava/io/File;Ljava/lang/String;)V secKey2 [B i purpose kpg Ljava/security/KeyPairGenerator; keys Ljava/security/KeyPair; encrypt secKey priv Ljava/security/PrivateKey; keyBytes encKeyBytes keyOut pub Ljava/security/PublicKey; Exceptions getIPAddress ()Ljava/net/InetAddress; localAddress getContactPhone 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; person org phoneNumber validatePhoneNumber &(Ljava/lang/String;)Ljava/lang/String; c C problem newPhoneNumber openParenPosition closeParenCount getContactEmail emailAddress badEmailAddress (Ljava/lang/String;)Z message atCount dotCount atIndex getInteger (Ljava/lang/String;III)I number defaultAnswer minimum maximum promptString finalInstruction getBoolean '(Ljava/lang/String;Ljava/lang/String;)Z getHHMMSS promptExtension responseToPrompt? getAbsolutePath getInterval ()Ljava/lang/String; getWeekday weekDay <clinit> SourceFile SimpleSetup.java??? 3ERROR: You must specify a configuration directory.??? java/io/File????? ? To configure your new Handle server, please answer the questions which follow; default answers, shown in [square brackets] when available, can be chosen by pressing Enter. ? Will this be a regular or caching Handle server? 1 - Regular Handle Server (recommended) 2 - Caching Handle Server Please choose 1 or 2 and press Enterrs EWill this be a "primary" server (ie, not a mirror of another server)? yz{Z[ :Enter the (TCP/UDP) port number this server will listen to 9What port number will the HTTP interface be listening to? 2Would you like to log all accesses to this server? n ? ?? Z Please indicate whether log files should be automatically rotated, and if so, how often.?? Never?? Monthly G NOTE: Auto-saves and restarts will be done on the first of each month. replpriv.bin? replpub.bin admpriv.bin admpub.bin txnsrcsv.bin 300:0.NA/YOUR_NAMING_AUTHORITY @Replication keys already exist, do you want to create new ones? I Since this is a secondary ("mirror") server, you need to specify the primary site from which this server will get its handles. You will be asked to specify the IP of a server from the primary site, and the port it listens to. This program will then contact that server and request the site data needed for downloading handles. ? WARNING: You have already configured a primary site from which this server is to get its handles. CHANGING THIS SETTING WILL REQUIRE THAT THIS SERVER RE-DOWNLOAD ALL OF THE HANDLES FROM THE PRIMARY SITE. 5 Would you like to specify a different primary site? %Enter the address of a primary server~c?? java/lang/Exception Got empty input??? java/lang/StringBuffer Invalid address: "?? "; Reason: ?? . Try again.?? 2Enter the port number of the same primary server ( ) net/handle/hdllib/GenericRequest??I? net/handle/hdllib/HandleResolver???? ? %net/handle/hdllib/GetSiteInfoResponse<1 "Unexpected response from primary: (Error retrieving replication site info: ` Each handle site has a version/serial number assigned to it. This is so that a client can tell if a particular site's configuration has changed since the last time it accessed a server in the site. Every time you modify a site (by changing an IP address, port, or adding a server, etc), you should increment the version/serial number for that site. ,Enter the version/serial number of this site Invalid input: "?? " (value out of 2-byte range). 4Please enter a short description of this server/site *Please enter the name of your organization .Please enter the name of a contact person for (optional) [(none)]]^j^ ? The Handle System can communicate via UDP and/or TCP sockets. Since UDP messages are blocked by many network firewalls, you may want to disable UDP services if you are behind such a firewall. ) Would you like to disable UDP services? privkey.bin pubkey.bin ;Server keys already exist, do you want to create new ones? Server Certification9G Replication Authentication BAdministrator keys already exist, do you want to create new ones? Administration Generating site info record... net/handle/hdllib/SiteInfo? java/io/FileOutputStream siteinfo.bin?????????? contactdata.dct??? txnstat.dct???? config.dct sitebndl.zip?? - You have finished configuring your regular ( primary mirror ) Handle service. M This service now needs to be registered in the Global Handle Registry (GHR). : Go to http://hdl.handle.net/4263537/5014 to register to 6 become a resolution service provider and then upload 7 your newly created sitebndl.zip file. Please read the 6 instructions on this page carefully. When the handle 4 administrator receives your file, a prefix will be 5 created and you will receive notification via email. : Please send all questions to hdladmin@cnri.reston.va.us. 7 Thank you for your interest in CNRI's Handle System. ?You have Finished configuring your caching Handle server. You can now start your server then test it by pointing a web browser at http://?? : / and entering a handle. 9 ------------------------------------------------------- Error setting up the server: ?? DSA??? Generating keys for: ????? The private key that is about to be generated should be stored in an encrypted form on your computer. Encryption of the private key requires that you choose a secret passphrase that will need to be entered whenever the server is started. Note: Your private key may be stored unencrypted if you so choose. Please take all precautions to make sure that only authorized users can read your private key. - Would you like to encrypt your private key? - Please enter the private key passphrase for : ?? - Please re-enter the private key passphrase: ?? ' Passphrases do not match! Try again. ??? &java/security/interfaces/DSAPrivateKey????P??? %java/security/interfaces/DSAPublicKey?? 7Through what IP address will this server be accessible??[ [ ] 127.?m =you must enter an address that is accessible from the network Invalid address ( ), please try again. %Please enter the telephone number of or of bc?????? contains illegal character '?? ' begins with a dash contains consecutive hyphens 'contains more than one left parenthesis begins with a right parenthesis $contains unmatched right parenthesis contains empty parentheses (contains more than one right parenthesis $containes unmatched left parenthesis Telephone number , please try again. ?m - . F.Y.I.: Changing telephone number format to ' '. "Please enter the email address of lm too many '@' characters '.' immediately after '@' no '@' character /no '.' character in segment after '@' character Invalid email address ( PROGRAMMING ERROR: getInteger( , greater than and less than ??? is unacceptable. ERROR: Please enter a positive number . PROGRAMMING ERROR: getBoolean( (y/n) [?? N NO Y YES " Unrecognized response, try again.?m PROGRAMMING ERROR: getHHMMSS( ????? #PROGRAMMING ERROR: getAbsolutePath( [ I Unacceptable response: please enter Absolute Pathname (begins with "/"). =("N" (Never), "M" (Monthly), "W" (Weekly), or "D" (Daily))? [ ] M W Weekly D Daily Unrecognized response. jPlease select a weekday for auto-saves and restarts ("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", or "Sat") [ ? ??? java/lang/String Sunday Monday Tuesday Wednesday Thursday Friday Saturday java/io/DataInputStream?? net/handle/server/SimpleSetup java/lang/Object java/io/IOException net/handle/hdllib/Util checkJavaVersion ()Z java/io/PrintStream println (Ljava/lang/String;)V exists mkdirs java/lang/System equals (Ljava/lang/Object;)Z #(Ljava/io/File;Ljava/lang/String;)V length ()I java/net/InetAddress getByName *(Ljava/lang/String;)Ljava/net/InetAddress; append ,(Ljava/lang/String;)Ljava/lang/StringBuffer; ,(Ljava/lang/Object;)Ljava/lang/StringBuffer; toString net/handle/hdllib/Common BLANK_HANDLE ,([BILnet/handle/hdllib/AuthenticationInfo;)V sendHdlTcpRequest ?(Lnet/handle/hdllib/AbstractRequest;Ljava/net/InetAddress;ILnet/handle/hdllib/ResponseMessageCallback;)Lnet/handle/hdllib/AbstractResponse; "net/handle/hdllib/AbstractResponse responseCode (I)Ljava/lang/StringBuffer; @(IZZBLjava/lang/String;Ljava/net/InetAddress;IILjava/io/File;Z)V (Ljava/io/File;)V net/handle/hdllib/Encoder encodeSiteInfoRecord (Lnet/handle/hdllib/SiteInfo;)[B write ([B)V close net/handle/hdllib/ConfigCommon contactDataTable g(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lnet/handle/util/StreamTable; net/handle/util/StreamTable writeToFile writeReplicationSiteFile Q(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;Lnet/handle/hdllib/SiteInfo;)V configuration ?(IZIZLjava/net/InetAddress;IILjava/lang/String;ZIIIZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lnet/handle/util/StreamTable; createSiteBundle ?(Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;Ljava/io/File;Ljava/io/File;Ljava/lang/String;Lnet/handle/hdllib/SiteInfo;Ljava/io/File;)V getHostAddress printStackTrace (Ljava/io/PrintStream;)V java/security/KeyPairGenerator getInstance 4(Ljava/lang/String;)Ljava/security/KeyPairGenerator; initialize (I)V generateKeyPair ()Ljava/security/KeyPair; getPassphrase (Ljava/lang/String;)[B ([B[B)Z java/security/KeyPair getPrivate ()Ljava/security/PrivateKey; getBytesFromPrivateKey (Ljava/security/PrivateKey;)[B encryptIfPossible ([B[B)[B ([B[BI)[B getPublic ()Ljava/security/PublicKey; getBytesFromPublicKey (Ljava/security/PublicKey;)[B getLocalHost startsWith trim charAt (I)C validPhoneNumberChar (C)Z (C)Ljava/lang/StringBuffer; endsWith java/lang/Integer parseInt (Ljava/lang/String;)I toUpperCase badHHMMSS print flush readLine substring (II)Ljava/lang/String; Ljava/io/InputStream; (Ljava/io/InputStream;)V! ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? / *? ? ? % ?L? ? ?*?? ? ? ?*2M? Y,? N-? ? -? W? ? L+? ? ? 6? 6? : Q} ? 6@} ? 6? 6 ? : ? ? ? ? : ? ? ? ? ? ? ? Y-? :? Y- ? :? Y-!? : ? Y-"? :? Y-#? :66$:::?A? %:?5? ? ? ? &? 6? '? 6? ? ? (? )? 6? ?*? +:? ,? ? -Y.? /?? 0:? 1:? ? 1Y? 23? 4? 45? 4? 67? 4? 8? ???? 1Y? 29? 4? 4:? 4? 8 Q} ? 6? ;Y? <? =:? >Y? ?:? @:? A? ? B? C:? >? -Y? 1Y? 2D? 4? 6? 8? /?:? ? 1Y? 2E? 4? 6? 8? ??%:? F? G? 6H~? ? %? ? 1Y? 2I? 4? JK? 4? 8? ???L? +:$:? ,? M? +:??? 1Y? 2N? 4? 4O? 4? 8? +:? P:? Q:? R? S? 66? Y-T? :? Y-U? :? ? ? ? V? 6? W? X? B? ? Y? X? ? ? ? ? Z? 6? [? X? \? ? ]Y? ^:? _Y? Y-`? ? a: ? b? c ? d? e:!? Y-f? :"!"? g? ,h? i jk%? l:##? Y-m? ? g:$? l,n"? o? 1Y? 2p? 4? q? r? 4s? 4t? 4u? 4v? 4w? 4x? 4y? 4z? 4{? 4|? 4? 8:$? 0? 1Y? 2}? 4? ~? 4? 4? J?? 4?? 4? 8:$? ? 1Y? 2?? 4$? 4? 8? ? $M? ? 1Y? 2?? 4,? 6? 8? ,? ? ?? [tw -?! -!! - ? - ? - ?? - ? u 1 5 6 9 : ; ? A % B , C 1 F 9 N <