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] }
329330331332333334335336337338339340341342343344
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();
379380381382383384385386387388389390391392393394
436437438439440441442443444445446447448449450451
493494495496497498499500501502503504505506507508
549550551552553554555556557558559560561562563564
600601602603604605606607608609610611612613614615
650651652653654655656657658659660661662663664665
712713714715716717718719720721722723724725726727
771772773774775776777778779780781782783784785786
823824825826827828829830831832833834835836837838