directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1035348 - /directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/KerberosServerPage.java
Date Mon, 15 Nov 2010 16:39:12 GMT
Author: pamarcelot
Date: Mon Nov 15 16:39:12 2010
New Revision: 1035348

URL: http://svn.apache.org/viewvc?rev=1035348&view=rev
Log:
Added a section for Kerberos ticket settings.

Modified:
    directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/KerberosServerPage.java

Modified: directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/KerberosServerPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/KerberosServerPage.java?rev=1035348&r1=1035347&r2=1035348&view=diff
==============================================================================
--- directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/KerberosServerPage.java
(original)
+++ directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/KerberosServerPage.java
Mon Nov 15 16:39:12 2010
@@ -97,6 +97,7 @@ public class KerberosServerPage extends 
 
         createKerberosServerSection( toolkit, leftComposite );
         createKerberosSettingsSection( toolkit, rightComposite );
+        createTicketSettingsSection( toolkit, leftComposite );
 
         initUI();
     }
@@ -134,7 +135,7 @@ public class KerberosServerPage extends 
 
 
     /**
-     * Creates the SASL Settings Section
+     * Creates the Kerberos Settings Section
      *
      * @param toolkit
      *      the toolkit to use
@@ -184,6 +185,53 @@ public class KerberosServerPage extends 
     }
 
 
+    /**
+     * Creates the Tickets Settings Section
+     *
+     * @param toolkit
+     *      the toolkit to use
+     * @param parent
+     *      the parent composite
+     */
+    private void createTicketSettingsSection( FormToolkit toolkit, Composite parent )
+    {
+        // Creation of the section
+        Section section = toolkit.createSection( parent, Section.TITLE_BAR );
+        section.setText( "Ticket Settings" );
+        section.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
+        Composite composite = toolkit.createComposite( section );
+        toolkit.paintBordersFor( composite );
+        GridLayout glayout = new GridLayout( 2, true );
+        composite.setLayout( glayout );
+        section.setClient( composite );
+
+        Button allowClockSkewButton = toolkit.createButton( composite, "Allow Clock Skew",
SWT.CHECK );
+        Button verifyBodyChecksumButton = toolkit.createButton( composite, "Verify Body Checksum",
SWT.CHECK );
+
+        Button allowEmptyAddressesButton = toolkit.createButton( composite, "Allow Empty
Addresses", SWT.CHECK );
+        Button allowForwardableAddressesButton = toolkit.createButton( composite, "Allow
Forwardable Addresses",
+            SWT.CHECK );
+
+        Button requirePreAuthenticationByEncryptedTimeStampButton = toolkit.createButton(
composite,
+            "Require Pre-Authentication By Encrypted TimeStamp", SWT.CHECK );
+        Button allowPostdatedTicketsButtons = toolkit.createButton( composite, "Allow Postdated
Tickets", SWT.CHECK );
+
+        Button allowRenewableTicketsButton = toolkit.createButton( composite, "Allow Renewable
Tickets", SWT.CHECK );
+        toolkit.createLabel( composite, "" );
+
+        Composite maximumRenewableLifetimeComposite = toolkit.createComposite( composite
);
+        maximumRenewableLifetimeComposite.setLayout( new GridLayout( 2, false ) );
+        toolkit.createLabel( maximumRenewableLifetimeComposite, "Maximum Renewable Lifetime:"
);
+        Text maximumRenewableLifetimeText = createIntegerText( toolkit, maximumRenewableLifetimeComposite
);
+
+        Composite maximumTicketLifetimeComposite = toolkit.createComposite( composite );
+        maximumTicketLifetimeComposite.setLayout( new GridLayout( 2, false ) );
+        toolkit.createLabel( maximumTicketLifetimeComposite, "Maximum Ticket Lifetime:" );
+        Text maximumTicketLifetimeText = createIntegerText( toolkit, maximumTicketLifetimeComposite
);
+
+    }
+
+
     private void initUI()
     {
         enableKerberosCheckbox.setSelection( true );



Mime
View raw message