assertNotNull( principalName );
assertEquals( PrincipalNameType.KRB_NT_PRINCIPAL, principalName.getNameType() );
assertTrue( principalName.getNames().contains( "hnelson" ) );
EncryptedData encryptedData = ticket.getEncPart();
assertNotNull( encryptedData );
assertEquals( EncryptionType.AES256_CTS_HMAC_SHA1_96, encryptedData.getEType() );
assertEquals( 5, encryptedData.getKvno() );
assertTrue( Arrays.equals( Strings.getBytesUtf8( "abcdef" ), encryptedData.getCipher() ) );
// Check the encoding
try
{
ByteBuffer bb = ticket.encode( null );