Edit C:\Users\Admin\.m2\repository\org\dspace\handle\6.2\net\handle\hdllib\Encoder.class
???? 0? ? ? ? ? ! ?" ?# ?$ ?% &'( )*+ ,- O. )/ ?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9 ?: ?; ?< ?= ?>? &@ &A &B &C ? D ?E ?F ?G ?H ?I ?J ?K ?L ?MN OP ?Q ?RS TU TVWX TY OZ TZ O[ T[ O\ T] O^ T_ T` Ta Tb Tc? Td@ Te Tf Tg Th Ti Tj Tk Tl Tm Tn ?o ?] ?_ ?p ?q ?r ?s ?tu ?v h hw hxy ?z m m{ m| m}~ m s s? s? s? ?? ?? ?? ?? ?? ?? ?? O? ?? ?? ??? ?? ??? )? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??? ? ?? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ???? ??? ??? ??? ??? ??? ??? ??? ?? ???? ??? ??? O? O? O? O?? ? ?l ?U ?V ?? ?? ?? ??? ? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??? ??? ? ?? ?? ?? ?? ?l ?U ?V ?l ?U ?V ?? ?? ?? ?? ?? ?? ?? ?l ?U ?V ?k ? ?? ?? ?? ?? ?l ?U ?V ? ?? ? ?? ?? ?? ?? ? ? ? ? ?? ?l ?U ?V ? ? ? ? ?? ? ? ? ?? ?l ?U ? ?V ? ?V ?U ? ? ? ?? ? ?] ?_ ?? ?l ? ?l ?U ?V ? E E E I M ? M ? M!"#$% V& U' U( O) *+, ]-./012324. 5 d6 O7 ]8 ]9 ]: ;<= k>? &@ ? ?A ?B ?C ?D ?} ?E ?FGHIJK kL ?M ? ?? ?l ?U ?V ?A ? NOP NQRST INT_SIZE I ConstantValue INT2_SIZE LONG_SIZE MSG_FLAG_AUTH MSG_FLAG_CERT MSG_FLAG_ENCR MSG_FLAG_RECU MSG_FLAG_CACR MSG_FLAG_CONT MSG_FLAG_KPAL MSG_FLAG_PUBL MSG_FLAG_RRDG ENV_FLAG_COMPRESSED B???? ENV_FLAG_ENCRYPTED @ ENV_FLAG_TRUNCATED PERM_ADMIN_READ PERM_ADMIN_WRITE PERM_PUBLIC_READ PERM_PUBLIC_WRITE MSG_INVALID_ARRAY_SIZE Ljava/lang/String; PERM_ADD_HANDLE PERM_DELETE_HANDLE PERM_ADD_NA PERM_DELETE_NA PERM_MODIFY_VALUE PERM_REMOVE_VALUE PERM_ADD_VALUE PERM_MODIFY_ADMIN ? PERM_REMOVE_ADMIN PERM_ADD_ADMIN PERM_READ_VALUE PERM_LIST_HDLS SESSION_FLAG_CERT SESSION_FLAG_ENCR <init> ()V Code LineNumberTable LocalVariableTable this Lnet/handle/hdllib/Encoder; readLong ([BI)J buf [B offset writeLong ([BIJ)I value J readInt2 ([BI)I writeInt2 ([BII)I readInt writeInt readByteArray ([BI)[B len a Exceptions writeByteArray ([BI[B)I bufToWrite ([BI[BII)I woffset length writeByteArrayArray ([BI[[B)I i [[B origOffset alen writeIntArray ([BI[I)I [I readIntArray ([BI)[I readByteArrayArray ([[B[BI)I dumpBytes ([B)V ([BI)V ([BII)V hs j decodeMessage K([BILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/AbstractMessage; requestDigest rdHashType signatureLength msg envelope #Lnet/handle/hdllib/MessageEnvelope; loc opCode responseCode opFlags serialNum recursionCount S expiration bodyLen bodyOffset message #Lnet/handle/hdllib/AbstractMessage; decodeSiteInfoRecord "([BILnet/handle/hdllib/SiteInfo;)V intrfc Lnet/handle/hdllib/Interface; server Lnet/handle/hdllib/ServerInfo; data site Lnet/handle/hdllib/SiteInfo; encodeSiteInfoRecord (Lnet/handle/hdllib/SiteInfo;)[B sz decodeAdminRecord %([BILnet/handle/hdllib/AdminRecord;)V admin Lnet/handle/hdllib/AdminRecord; permissions encodeAdminRecord #(Lnet/handle/hdllib/AdminRecord;)[B recordLen encodeSecretKey ([BZ)[B secretKey shadow Z calculateAdminRecordSize "(Lnet/handle/hdllib/AdminRecord;)I encodeGenericRequest '(Lnet/handle/hdllib/AbstractRequest;)[B req #Lnet/handle/hdllib/AbstractRequest; decodeGenericRequest K([BIILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/GenericRequest; env handle "Lnet/handle/hdllib/GenericRequest; encodeHandleValue %([BILnet/handle/hdllib/HandleValue;)I Lnet/handle/hdllib/HandleValue; getHandleValueType getHandleValueIndex getHandleValuePermissions ([BI)B calcStorageSize "(Lnet/handle/hdllib/HandleValue;)I calcHandleValueSize refLen values fieldLen decodeHandleValue encodeMessage '(Lnet/handle/hdllib/AbstractMessage;)[B encodeEnvelope ((Lnet/handle/hdllib/MessageEnvelope;[B)V msgEnv udpPkt decodeEnvelope (([BLnet/handle/hdllib/MessageEnvelope;)V encodeNextTxnIdResponse )(Lnet/handle/hdllib/NextTxnIdResponse;)[B res %Lnet/handle/hdllib/NextTxnIdResponse; decodeNextTxnIdResponse M([BILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/NextTxnIdResponse; nextTxnId decodeAddValueRequest K([BILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/AddValueRequest; [Lnet/handle/hdllib/HandleValue; encodeAddValueRequest '(Lnet/handle/hdllib/AddValueRequest;)[B #Lnet/handle/hdllib/AddValueRequest; decodeModifyValueRequest N([BILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/ModifyValueRequest; numValues encodeModifyValueRequest *(Lnet/handle/hdllib/ModifyValueRequest;)[B &Lnet/handle/hdllib/ModifyValueRequest; decodeRemoveValueRequest N([BILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/RemoveValueRequest; indexes encodeRemoveValueRequest *(Lnet/handle/hdllib/RemoveValueRequest;)[B &Lnet/handle/hdllib/RemoveValueRequest; encodeVerifyAuthRequest )(Lnet/handle/hdllib/VerifyAuthRequest;)[B %Lnet/handle/hdllib/VerifyAuthRequest; decodeVerifyAuthRequest M([BILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/VerifyAuthRequest; handleIndex nonce digestAlg signedResponse decodeGetSiteInfoResponse O([BILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/GetSiteInfoResponse; encodeGetSiteInfoResponse +(Lnet/handle/hdllib/GetSiteInfoResponse;)[B 'Lnet/handle/hdllib/GetSiteInfoResponse; siteBuf encodeVerifyAuthResponse *(Lnet/handle/hdllib/VerifyAuthResponse;)[B &Lnet/handle/hdllib/VerifyAuthResponse; decodeVerifyAuthResponse N([BILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/VerifyAuthResponse; isValid encodeRetrieveTxnRequest *(Lnet/handle/hdllib/RetrieveTxnRequest;)[B &Lnet/handle/hdllib/RetrieveTxnRequest; encodeRetrieveTxnResponse +(Lnet/handle/hdllib/RetrieveTxnResponse;)[B 'Lnet/handle/hdllib/RetrieveTxnResponse; decodeRetrieveTxnResponse O([BILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/RetrieveTxnResponse; decodeRetrieveTxnRequest N([BILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/RetrieveTxnRequest; lastTxnId lastQueryDate rcvrHashType numServers serverNum encodeDumpHandlesRequest *(Lnet/handle/hdllib/DumpHandlesRequest;)[B &Lnet/handle/hdllib/DumpHandlesRequest; encodeDumpHandlesResponse +(Lnet/handle/hdllib/DumpHandlesResponse;)[B 'Lnet/handle/hdllib/DumpHandlesResponse; decodeDumpHandlesResponse O([BILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/DumpHandlesResponse; decodeDumpHandlesRequest N([BILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/DumpHandlesRequest; decodeDeleteHandleRequest O([BILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/DeleteHandleRequest; encodeDeleteHandleRequest +(Lnet/handle/hdllib/DeleteHandleRequest;)[B 'Lnet/handle/hdllib/DeleteHandleRequest; decodeGenericResponse K([BILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/GenericResponse; encodeGenericResponse decodeCreateHandleRequest O([BILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/CreateHandleRequest; encodeCreateHandleRequest +(Lnet/handle/hdllib/CreateHandleRequest;)[B 'Lnet/handle/hdllib/CreateHandleRequest; decodeListHandlesRequest N([BILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/ListHandlesRequest; naHandle decodeListHandlesResponse O([BILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/ListHandlesResponse; numHandles handles response 'Lnet/handle/hdllib/ListHandlesResponse; encodeListHandlesRequest *(Lnet/handle/hdllib/ListHandlesRequest;)[B &Lnet/handle/hdllib/ListHandlesRequest; encodeListHandlesResponse +(Lnet/handle/hdllib/ListHandlesResponse;)[B decodeResolutionRequest M([BILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/ResolutionRequest; types decodeResolutionResponse N([BILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/ResolutionResponse; valLen handleLen encodeResolutionRequest )(Lnet/handle/hdllib/ResolutionRequest;)[B %Lnet/handle/hdllib/ResolutionRequest; encodeResolutionResponse *(Lnet/handle/hdllib/ResolutionResponse;)[B &Lnet/handle/hdllib/ResolutionResponse; decodeChallenge N([BIILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/ChallengeResponse; cr %Lnet/handle/hdllib/ChallengeResponse; decodeChallengeAnswer R([BILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/ChallengeAnswerRequest; authType userIdHandle userIdIndex decodeValueReferenceList (([BI)[Lnet/handle/hdllib/ValueReference; #[Lnet/handle/hdllib/ValueReference; encodeValueReferenceList '([Lnet/handle/hdllib/ValueReference;)[B encodeChallengeAnswer .(Lnet/handle/hdllib/ChallengeAnswerRequest;)[B *Lnet/handle/hdllib/ChallengeAnswerRequest; encodeChallenge )(Lnet/handle/hdllib/ChallengeResponse;)[B encodeErrorMessage %(Lnet/handle/hdllib/ErrorResponse;)[B !Lnet/handle/hdllib/ErrorResponse; decodeErrorMessage M([BILnet/handle/hdllib/MessageEnvelope;I)Lnet/handle/hdllib/AbstractResponse; endOfBuf writeHeader )(Lnet/handle/hdllib/AbstractMessage;[BI)I flags encodeGlobalValues $([Lnet/handle/hdllib/HandleValue;)[B dataLen encodeLocalSites 5([Lnet/handle/hdllib/SiteInfo;[[Ljava/lang/String;)[B bsite e Ljava/io/IOException; sites [Lnet/handle/hdllib/SiteInfo; na [[Ljava/lang/String; intbuf b Ljava/io/ByteArrayOutputStream; decodeLocalSites *(Ljava/io/InputStream;)Ljava/util/HashMap; newsites numNAs [Ljava/lang/String; numSites table Ljava/util/HashMap; in Ljava/io/InputStream; decodeLocalAddresses line fromAddr toAddr rdr Ljava/io/BufferedReader; map writeLocalAddresses ((Ljava/util/Map;Ljava/io/OutputStream;)V key Ljava/lang/Object; val keys Ljava/util/Iterator; Ljava/util/Map; out Ljava/io/OutputStream; w Ljava/io/OutputStreamWriter; decodeGlobalValues 7(Ljava/io/InputStream;)[Lnet/handle/hdllib/HandleValue; n r Ljava/lang/Exception; decodeHandleValues $([B)[Lnet/handle/hdllib/HandleValue; decodeSessionSetupRequest O([BILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/SessionSetupRequest; 'Lnet/handle/hdllib/SessionSetupRequest; encodeSessionSetupRequest +(Lnet/handle/hdllib/SessionSetupRequest;)[B #Lnet/handle/hdllib/HandleException; encodeSessionExchangeKeyRequest 1(Lnet/handle/hdllib/SessionExchangeKeyRequest;)[B -Lnet/handle/hdllib/SessionExchangeKeyRequest; encryptedSessionKey decodeSessionExchangeKeyRequest U([BILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/SessionExchangeKeyRequest; sessionKeyLen encodeSessionSetupResponse ,(Lnet/handle/hdllib/SessionSetupResponse;)[B (Lnet/handle/hdllib/SessionSetupResponse; decodeSetupSessionResponse P([BILnet/handle/hdllib/MessageEnvelope;)Lnet/handle/hdllib/SessionSetupResponse; mode decryptMessage '(Lnet/handle/hdllib/SessionInfo;[B[B)[B session Lnet/handle/hdllib/SessionInfo; ciphermsg cryptoProvider )Lnet/handle/security/HdlSecurityProvider; SourceFile Encoder.java???? !net/handle/hdllib/HandleException Invalid array size?UVWX????????YZ [\] ^_`?a\b??????]^??HINOTU????wx??? &' java/lang/StringBuffer Unknown opCode in message: cdcefg Unrecognized request hash type: ??lm??uv????EFcd Unknown opCode in response: hi????? Unknown responseCode: j???? Unknown message type: opCode= ; responseCode=k?l?m?n?o?p?q?????r? stuvwxyz{?|?}?~?????? net/handle/hdllib/Attribute?????? net/handle/hdllib/ServerInfo???????? net/handle/hdllib/Interface?????????????????????????g??)??? net/handle/hdllib/GenericRequest??? ,Warning: uncaught generic request in Encoder?]?????????????? ??? net/handle/hdllib/ValueReference???? #net/handle/hdllib/ResolutionRequest?? #net/handle/hdllib/VerifyAuthRequestZ[ %net/handle/hdllib/CreateHandleRequest?? %net/handle/hdllib/DeleteHandleRequest?? $net/handle/hdllib/RetrieveTxnRequestop $net/handle/hdllib/DumpHandlesRequest~ (net/handle/hdllib/ChallengeAnswerRequest?? !net/handle/hdllib/AddValueRequestKL $net/handle/hdllib/ModifyValueRequestQR $net/handle/hdllib/RemoveValueRequestWX $net/handle/hdllib/ListHandlesRequest?? %net/handle/hdllib/SessionSetupRequest +net/handle/hdllib/SessionExchangeKeyRequest !net/handle/hdllib/AbstractRequest"# Unknown opCode: $net/handle/hdllib/ResolutionResponse?? $net/handle/hdllib/VerifyAuthResponseij #net/handle/hdllib/NextTxnIdResponseAB %net/handle/hdllib/ListHandlesResponse?? %net/handle/hdllib/RetrieveTxnResponsers %net/handle/hdllib/DumpHandlesResponse?? %net/handle/hdllib/GetSiteInfoResponseef &net/handle/hdllib/SessionSetupResponse ?: Invalid response message opCode net/handle/hdllib/ErrorResponse?? #net/handle/hdllib/ChallengeResponse?? 2Encoder.encodeMessage() not implemented for type: ????? Invalid message envelope Invalid message length: G??????? net/handle/hdllib/HandleValue8,??6J23+,????V???`?????b?_? Invalid hash type in message: ?? net/handle/hdllib/SiteInfo???n??y?z?{?|?}??????? !net/handle/hdllib/GenericResponse?????? Invalid handle length: Invalid number of values: 4?????????6?????????????? (Local site values must have matching NAs java/io/ByteArrayOutputStream???? java/io/IOException?? $Error writing local site information??? java/util/HashMap java/lang/String?????? $Error reading local site information java/io/BufferedReader java/io/InputStreamReader ASCII?????g?g??? java/io/OutputStreamWriter????????????? java/net/InetAddress?g???]?????? java/lang/Exception Invalid number of handle values?] Error parsing global info: c????????????? &Can not decode session setup request: *Session setup request missing exchange key 1Session setup request missing key exchange handle Unknown key exchange mode: &Error encoding session setup request: ?g????? (Encryption/Key generation engine missing?? GCan not decrypt message with session key. Message may not be encrypted! net/handle/hdllib/Encoder java/lang/Object (ILjava/lang/String;)V java/lang/System arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)V err Ljava/io/PrintStream; java/io/PrintStream print (Ljava/lang/String;)V java/lang/Integer toHexString (I)Ljava/lang/String; ()I (C)V append ,(Ljava/lang/String;)Ljava/lang/StringBuffer; (I)Ljava/lang/StringBuffer; toString ()Ljava/lang/String; !net/handle/hdllib/MessageEnvelope messageLength !net/handle/hdllib/AbstractMessage messageBody sessionId requestId protocolMajorVersion majorProtocolVersion protocolMinorVersion minorProtocolVersion siteInfoSerial authoritative certify encrypt recursive cacheCertify ignoreRestrictedValues continuous keepAlive returnRequestDigest signature dataFormatVersion serialNumber isPrimary multiPrimary hashOption hashFilter attributes [Lnet/handle/hdllib/Attribute; name servers [Lnet/handle/hdllib/ServerInfo; serverId ipAddress publicKey interfaces [Lnet/handle/hdllib/Interface; type protocol port net/handle/hdllib/AdminRecord perms [Z adminId adminIdIndex net/handle/hdllib/Util doSHA1Digest ([B)[B decodeHexString ([BZ)Ljava/lang/String; toLowerCase encodeString (Ljava/lang/String;)[B ,([BILnet/handle/hdllib/AuthenticationInfo;)V isAdminRequest println index timestamp ttlType ttl adminRead adminWrite publicRead publicWrite references cachedBuf cachedBufOffset compressed encrypted truncated messageId (J)V K([B[Lnet/handle/hdllib/HandleValue;Lnet/handle/hdllib/AuthenticationInfo;)V -([B[ILnet/handle/hdllib/AuthenticationInfo;)V origDigestAlg origRequestDigest 3([B[B[BB[BILnet/handle/hdllib/AuthenticationInfo;)V (Lnet/handle/hdllib/SiteInfo;)V siteInfo (Z)V .(JJBIILnet/handle/hdllib/AuthenticationInfo;)V ,(BIILnet/handle/hdllib/AuthenticationInfo;)V +([BLnet/handle/hdllib/AuthenticationInfo;)V 0([B[[B[ILnet/handle/hdllib/AuthenticationInfo;)V ([B[[B)V requestedIndexes requestedTypes (I[B)V 0([B[BI[BLnet/handle/hdllib/AuthenticationInfo;)V write toByteArray ()[B printStackTrace java/io/InputStream read ([B)I decodeString ([B)Ljava/lang/String; get &(Ljava/lang/Object;)Ljava/lang/Object; put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; *(Ljava/io/InputStream;Ljava/lang/String;)V (Ljava/io/Reader;)V readLine trim net/handle/util/StringUtils fieldIndex ((Ljava/lang/String;CI)Ljava/lang/String; +(Ljava/io/OutputStream;Ljava/lang/String;)V java/util/Map keySet ()Ljava/util/Set; java/util/Set iterator ()Ljava/util/Iterator; java/util/Iterator hasNext ()Z next ()Ljava/lang/Object; getHostAddress valueOf &(Ljava/lang/Object;)Ljava/lang/String; (I)V close ,(Ljava/lang/Object;)Ljava/lang/StringBuffer; keyExchangeMode timeout identityHandle identityIndex exchangeKeyHandle exchangeKeyIndex getMessage getEncryptedSessionKey 'net/handle/security/HdlSecurityProvider getInstance +()Lnet/handle/security/HdlSecurityProvider; decrypt_DES_ECB_PKCS5 ([BII[B)[B!?? "