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] }
775776777778779780781782783784785
kdcReqBody.setKdcOptions( kdcOptions ); KerberosTime requestedEndTime = new KerberosTime( now + KerberosTime.DAY / 2 ); kdcReqBody.setTill( requestedEndTime ); KdcReq message = getKdcRequest( tgt, kdcReqBody ); handler.messageReceived( session, message ); Object msg = session.getMessage(); assertEquals( "session.getMessage() instanceOf", TgsRep.class, msg.getClass() );
828829830831832833834835836837838
870871872873874875876877878879880881
long now = System.currentTimeMillis(); KerberosTime requestedEndTime = new KerberosTime( now + KerberosTime.DAY ); kdcReqBody.setTill( requestedEndTime ); KdcReq message = new TgsReq(); message.setKdcReqBody( kdcReqBody ); handler.messageReceived( session, message ); Object msg = session.getMessage(); assertEquals( "session.getMessage() instanceOf", KrbError.class, msg.getClass() );
911912913914915916917918919920921
long currentTime = System.currentTimeMillis(); KerberosTime requestedEndTime = new KerberosTime( currentTime + KerberosTime.DAY ); kdcReqBody.setTill( requestedEndTime ); KdcReq message = getKdcRequest( tgt, kdcReqBody ); handler.messageReceived( session, message ); Object msg = session.getMessage(); assertEquals( "session.getMessage() instanceOf", KrbError.class, msg.getClass() );
962963964965966967968969970971972
long now = System.currentTimeMillis(); KerberosTime requestedEndTime = new KerberosTime( now + KerberosTime.DAY ); kdcReqBody.setTill( requestedEndTime ); KdcReq message = getKdcRequest( tgt, kdcReqBody ); handler.messageReceived( session, message ); Object msg = session.getMessage(); assertEquals( "session.getMessage() instanceOf", TgsRep.class, msg.getClass() );
10201021102210231024102510261027102810291030
kdcReqBody.setFrom( requestedStartTime ); KerberosTime requestedEndTime = new KerberosTime( now + KerberosTime.DAY ); kdcReqBody.setTill( requestedEndTime ); KdcReq message = getKdcRequest( tgt, kdcReqBody ); handler.messageReceived( session, message ); Object msg = session.getMessage(); assertEquals( "session.getMessage() instanceOf", TgsRep.class, msg.getClass() );
10781079108010811082108310841085108610871088
11371138113911401141114211431144114511461147
kdcReqBody.setFrom( requestedStartTime ); KerberosTime requestedEndTime = new KerberosTime( now ); kdcReqBody.setTill( requestedEndTime ); KdcReq message = getKdcRequest( tgt, kdcReqBody ); handler.messageReceived( session, message ); Object msg = session.getMessage(); assertEquals( "session.getMessage() instanceOf", KrbError.class, msg.getClass() );
11921193119411951196119711981199120012011202
kdcReqBody.setFrom( requestedStartTime ); KerberosTime requestedEndTime = new KerberosTime( now + 4 * KerberosTime.MINUTE ); kdcReqBody.setTill( requestedEndTime ); KdcReq message = getKdcRequest( tgt, kdcReqBody ); handler.messageReceived( session, message ); Object msg = session.getMessage(); assertEquals( "session.getMessage() instanceOf", KrbError.class, msg.getClass() );
12451246124712481249125012511252125312541255
kdcReqBody.setFrom( requestedStartTime ); KerberosTime requestedEndTime = new KerberosTime( now + KerberosTime.DAY ); kdcReqBody.setTill( requestedEndTime ); KdcReq message = getKdcRequest( tgt, kdcReqBody ); handler.messageReceived( session, message ); Object msg = session.getMessage(); assertEquals( "session.getMessage() instanceOf", KrbError.class, msg.getClass() );