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] }
13121313131413151316131713181319132013211322
kdcReqBody.setFrom( requestedStartTime ); KerberosTime requestedEndTime = new KerberosTime( now + 2 * 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() );
13681369137013711372137313741375137613771378
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() );
14191420142114221423142414251426142714281429
long now = System.currentTimeMillis(); 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() );
14711472147314741475147614771478147914801481
long now = System.currentTimeMillis(); KerberosTime requestedEndTime = new KerberosTime( now + KerberosTime.WEEK ); kdcReqBody.setTill( requestedEndTime ); KdcReq message = getKdcRequest( tgt, kdcReqBody ); handler.messageReceived( session, message ); Object msg = session.getMessage(); assertEquals( "session.getMessage() instanceOf", TgsRep.class, msg.getClass() );
15191520152115221523152415251526152715281529
String epoch = "19700101000000Z"; KerberosTime requestedEndTime = KerberosTime.getTime( epoch ); kdcReqBody.setTill( requestedEndTime ); KdcReq message = getKdcRequest( tgt, kdcReqBody ); handler.messageReceived( session, message ); Object msg = session.getMessage(); assertEquals( "session.getMessage() instanceOf", TgsRep.class, msg.getClass() );
15781579158015811582158315841585158615871588
16391640164116421643164416451646164716481649
long now = System.currentTimeMillis(); KerberosTime requestedEndTime = new KerberosTime( now + 1 * 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() );
16951696169716981699170017011702170317041705
17511752175317541755175617571758175917601761
18131814181518161817181818191820182118221823
kdcReqBody.setTill( requestedEndTime ); KerberosTime requestedRenewTillTime = new KerberosTime( now + KerberosTime.WEEK / 2 ); kdcReqBody.setRtime( requestedRenewTillTime ); KdcReq message = getKdcRequest( tgt, kdcReqBody ); handler.messageReceived( session, message ); Object msg = session.getMessage(); assertEquals( "session.getMessage() instanceOf", TgsRep.class, msg.getClass() );