directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r539987 [2/2] - in /directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages: components/ value/
Date Mon, 21 May 2007 00:50:03 GMT
Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/PreAuthenticationDataModifier.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/PreAuthenticationDataModifier.java?view=diff&rev=539987&r1=539986&r2=539987
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/PreAuthenticationDataModifier.java
(original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/PreAuthenticationDataModifier.java
Sun May 20 17:50:01 2007
@@ -30,18 +30,33 @@
     private byte[] dataValue;
 
 
+    /**
+     * Returns the {@link PreAuthenticationData}.
+     *
+     * @return The {@link PreAuthenticationData}.
+     */
     public PreAuthenticationData getPreAuthenticationData()
     {
         return new PreAuthenticationData( dataType, dataValue );
     }
 
 
+    /**
+     * Sets the {@link PreAuthenticationDataType}.
+     *
+     * @param dataType
+     */
     public void setDataType( PreAuthenticationDataType dataType )
     {
         this.dataType = dataType;
     }
 
 
+    /**
+     * Sets the raw bytes of this {@link PreAuthenticationData}.
+     *
+     * @param dataValue
+     */
     public void setDataValue( byte[] dataValue )
     {
         this.dataValue = dataValue;

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/PrincipalName.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/PrincipalName.java?view=diff&rev=539987&r1=539986&r2=539987
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/PrincipalName.java
(original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/PrincipalName.java
Sun May 20 17:50:01 2007
@@ -30,19 +30,35 @@
     private int nameType;
 
 
-    public PrincipalName(String nameComponent, int nameType)
+    /**
+     * Creates a new instance of PrincipalName.
+     *
+     * @param nameComponent
+     * @param nameType
+     */
+    public PrincipalName( String nameComponent, int nameType )
     {
         this.nameComponent = nameComponent;
         this.nameType = nameType;
     }
 
 
+    /**
+     * Returns the type of the {@link PrincipalName}.
+     *
+     * @return The type of the {@link PrincipalName}.
+     */
     public int getNameType()
     {
         return nameType;
     }
 
 
+    /**
+     * Returns the name component.
+     *
+     * @return The name component.
+     */
     public String getNameComponent()
     {
         return nameComponent;

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/PrincipalNameModifier.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/PrincipalNameModifier.java?view=diff&rev=539987&r1=539986&r2=539987
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/PrincipalNameModifier.java
(original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/PrincipalNameModifier.java
Sun May 20 17:50:01 2007
@@ -33,18 +33,23 @@
 {
     private static final String COMPONENT_SEPARATOR = "/";
 
-    List components = new ArrayList();
+    List<String> components = new ArrayList<String>();
     int nameType;
 
 
+    /**
+     * Returns the {@link PrincipalName}.
+     *
+     * @return The {@link PrincipalName}.
+     */
     public PrincipalName getPrincipalName()
     {
         StringBuffer sb = new StringBuffer();
-        Iterator it = components.iterator();
+        Iterator<String> it = components.iterator();
 
         while ( it.hasNext() )
         {
-            String component = ( String ) it.next();
+            String component = it.next();
             sb.append( component );
 
             if ( it.hasNext() )
@@ -57,12 +62,22 @@
     }
 
 
+    /**
+     * Sets the type.
+     *
+     * @param type
+     */
     public void setType( int type )
     {
         nameType = type;
     }
 
 
+    /**
+     * Adds a name component.
+     *
+     * @param name
+     */
     public void addName( String name )
     {
         components.add( name );

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/RequestBody.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/RequestBody.java?view=diff&rev=539987&r1=539986&r2=539987
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/RequestBody.java
(original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/RequestBody.java
Sun May 20 17:50:01 2007
@@ -45,9 +45,24 @@
     private Ticket[] additionalTickets; //optional
 
 
-    public RequestBody(KdcOptions kdcOptions, KerberosPrincipal clientPrincipal, KerberosPrincipal
serverPrincipal,
+    /**
+     * Creates a new instance of RequestBody.
+     *
+     * @param kdcOptions
+     * @param clientPrincipal
+     * @param serverPrincipal
+     * @param from
+     * @param till
+     * @param rtime
+     * @param nonce
+     * @param eType
+     * @param addresses
+     * @param encAuthorizationData
+     * @param additionalTickets
+     */
+    public RequestBody( KdcOptions kdcOptions, KerberosPrincipal clientPrincipal, KerberosPrincipal
serverPrincipal,
         KerberosTime from, KerberosTime till, KerberosTime rtime, int nonce, EncryptionType[]
eType,
-        HostAddresses addresses, EncryptedData encAuthorizationData, Ticket[] additionalTickets)
+        HostAddresses addresses, EncryptedData encAuthorizationData, Ticket[] additionalTickets
)
     {
         this.kdcOptions = kdcOptions;
         this.clientPrincipal = clientPrincipal;
@@ -63,66 +78,121 @@
     }
 
 
+    /**
+     * Returns the additional {@link Ticket}s.
+     *
+     * @return The additional {@link Ticket}s.
+     */
     public Ticket[] getAdditionalTickets()
     {
         return additionalTickets;
     }
 
 
+    /**
+     * Returns the {@link HostAddresses}.
+     *
+     * @return The {@link HostAddresses}.
+     */
     public HostAddresses getAddresses()
     {
         return addresses;
     }
 
 
+    /**
+     * Returns the client {@link KerberosPrincipal}.
+     *
+     * @return The client {@link KerberosPrincipal}.
+     */
     public KerberosPrincipal getClientPrincipal()
     {
         return clientPrincipal;
     }
 
 
+    /**
+     * Returns the server {@link KerberosPrincipal}.
+     *
+     * @return The server {@link KerberosPrincipal}.
+     */
     public KerberosPrincipal getServerPrincipal()
     {
         return serverPrincipal;
     }
 
 
+    /**
+     * Returns the encrypted {@link AuthorizationData} as {@link EncryptedData}.
+     *
+     * @return The encrypted {@link AuthorizationData} as {@link EncryptedData}.
+     */
     public EncryptedData getEncAuthorizationData()
     {
         return encAuthorizationData;
     }
 
 
+    /**
+     * Returns the requested {@link EncryptionType}s.
+     *
+     * @return The requested {@link EncryptionType}s.
+     */
     public EncryptionType[] getEType()
     {
         return eType;
     }
 
 
+    /**
+     * Returns the from {@link KerberosTime}.
+     *
+     * @return The from {@link KerberosTime}.
+     */
     public KerberosTime getFrom()
     {
         return from;
     }
 
 
+    /**
+     * Returns the {@link KdcOptions}.
+     *
+     * @return The {@link KdcOptions}.
+     */
     public KdcOptions getKdcOptions()
     {
         return kdcOptions;
     }
 
 
+    /**
+     * Returns the nonce.
+     *
+     * @return The nonce.
+     */
     public int getNonce()
     {
         return nonce;
     }
 
 
+    /**
+     * Returns the "R" {@link KerberosTime}.
+     *
+     * @return The "R" {@link KerberosTime}.
+     */
     public KerberosTime getRtime()
     {
         return rtime;
     }
 
 
+    /**
+     * Returns the till {@link KerberosTime}.
+     *
+     * @return The till {@link KerberosTime}.
+     */
     public KerberosTime getTill()
     {
         return till;

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/RequestBodyModifier.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/RequestBodyModifier.java?view=diff&rev=539987&r1=539986&r2=539987
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/RequestBodyModifier.java
(original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/RequestBodyModifier.java
Sun May 20 17:50:01 2007
@@ -45,6 +45,11 @@
     private Ticket[] additionalTickets; //optional
 
 
+    /**
+     * Returns the {@link RequestBody}.
+     *
+     * @return The {@link RequestBody}.
+     */
     public RequestBody getRequestBody()
     {
         KerberosPrincipal clientPrincipal = clientModifier.getKerberosPrincipal();
@@ -55,18 +60,33 @@
     }
 
 
+    /**
+     * Sets the client {@link PrincipalName}.
+     *
+     * @param clientName
+     */
     public void setClientName( PrincipalName clientName )
     {
         clientModifier.setPrincipalName( clientName );
     }
 
 
+    /**
+     * Sets the server {@link PrincipalName}.
+     *
+     * @param serverName
+     */
     public void setServerName( PrincipalName serverName )
     {
         serverModifier.setPrincipalName( serverName );
     }
 
 
+    /**
+     * Sets the realm.
+     *
+     * @param realm
+     */
     public void setRealm( String realm )
     {
         clientModifier.setRealm( realm );
@@ -74,54 +94,99 @@
     }
 
 
+    /**
+     * Sets additional {@link Ticket}s.
+     *
+     * @param tickets
+     */
     public void setAdditionalTickets( Ticket[] tickets )
     {
         additionalTickets = tickets;
     }
 
 
+    /**
+     * Sets the {@link HostAddresses}.
+     *
+     * @param addresses
+     */
     public void setAddresses( HostAddresses addresses )
     {
         this.addresses = addresses;
     }
 
 
+    /**
+     * Sets the encrypted authorization data.
+     *
+     * @param authorizationData
+     */
     public void setEncAuthorizationData( EncryptedData authorizationData )
     {
         encAuthorizationData = authorizationData;
     }
 
 
+    /**
+     * Sets the requested {@link EncryptionType}s.
+     *
+     * @param type
+     */
     public void setEType( EncryptionType[] type )
     {
         eType = type;
     }
 
 
+    /**
+     * Sets the from {@link KerberosTime}.
+     *
+     * @param from
+     */
     public void setFrom( KerberosTime from )
     {
         this.from = from;
     }
 
 
+    /**
+     * Sets the {@link KdcOptions}.
+     *
+     * @param options
+     */
     public void setKdcOptions( KdcOptions options )
     {
         kdcOptions = options;
     }
 
 
+    /**
+     * Sets the nonce.
+     *
+     * @param nonce
+     */
     public void setNonce( int nonce )
     {
         this.nonce = nonce;
     }
 
 
+    /**
+     * Sets the "R" {@link KerberosTime}.
+     *
+     * @param rtime
+     */
     public void setRtime( KerberosTime rtime )
     {
         this.rtime = rtime;
     }
 
 
+    /**
+     * Sets the till {@link KerberosTime}.
+     *
+     * @param till
+     */
     public void setTill( KerberosTime till )
     {
         this.till = till;

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/TransitedEncoding.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/TransitedEncoding.java?view=diff&rev=539987&r1=539986&r2=539987
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/TransitedEncoding.java
(original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/TransitedEncoding.java
Sun May 20 17:50:01 2007
@@ -30,6 +30,9 @@
     private byte[] contents;
 
 
+    /**
+     * Creates a new instance of TransitedEncoding.
+     */
     public TransitedEncoding()
     {
         type = TransitedEncodingType.NULL;
@@ -37,19 +40,35 @@
     }
 
 
-    public TransitedEncoding(TransitedEncodingType type, byte[] contents)
+    /**
+     * Creates a new instance of TransitedEncoding.
+     *
+     * @param type
+     * @param contents
+     */
+    public TransitedEncoding( TransitedEncodingType type, byte[] contents )
     {
         this.type = type;
         this.contents = contents;
     }
 
 
+    /**
+     * Returns the contents.
+     *
+     * @return The contents.
+     */
     public byte[] getContents()
     {
         return contents;
     }
 
 
+    /**
+     * Returns the {@link TransitedEncodingType}.
+     *
+     * @return The {@link TransitedEncodingType}.
+     */
     public TransitedEncodingType getType()
     {
         return type;



Mime
View raw message