KDC-REQ ::= SEQUENCE { -- NOTE: first tag is [1], not [0] pvno [1] INTEGER (5) , msg-type [2] INTEGER (10 -- AS -- | 12 -- TGS --), padata [3] SEQUENCE OF OPTIONAL -- NOTE: not empty --, req-body [4] }
870871872873874875876877878879880881882883884885
KerberosPrincipal clientPrincipal = new KerberosPrincipal( "hnelson@EXAMPLE.COM" ); String passPhrase = "secret"; PaData[] paDatas = getPreAuthEncryptedTimeStamp( clientPrincipal, passPhrase ); KdcReq message = new AsReq(); message.setKdcReqBody( kdcReqBody ); for ( PaData paData : paDatas ) { message.addPaData( paData ); } handler.messageReceived( session, message ); Object msg = session.getMessage();
918919920921922923924925926927928929930931932933
979980981982983984985986987988989990991992993994
1037103810391040104110421043104410451046104710481049105010511052
1090109110921093109410951096109710981099110011011102110311041105
1143114411451146114711481149115011511152115311541155115611571158
1202120312041205120612071208120912101211121212131214121512161217
1264126512661267126812691270127112721273127412751276127712781279
1318131913201321132213231324132513261327132813291330133113321333
1363136413651366136713681369137013711372137313741375137613771378