directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r159169 - in directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo: ./ AbstractPOJO.java BindRequestPOJO.java BindResponsePOJO.java ControlsPOJO.java LdapMessagePOJO.java LdapPOJO.java SaslAuthenticationPOJO.java SimpleAuthenticationPOJO.java
Date Sun, 27 Mar 2005 18:42:09 GMT
Author: elecharny
Date: Sun Mar 27 10:42:07 2005
New Revision: 159169

URL: http://svn.apache.org/viewcvs?view=rev&rev=159169
Log:
A first working version of the new ASN.1 LDAP decoder.

Added:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/AbstractPOJO.java
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindRequestPOJO.java
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindResponsePOJO.java
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/ControlsPOJO.java
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessagePOJO.java
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapPOJO.java
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SaslAuthenticationPOJO.java
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthenticationPOJO.java

Added: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/AbstractPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/AbstractPOJO.java?view=auto&rev=159169
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/AbstractPOJO.java
(added)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/AbstractPOJO.java
Sun Mar 27 10:42:07 2005
@@ -0,0 +1,101 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.asn1.ldap.pojo;
+
+import org.apache.asn1.ldap.codec.DecoderException;
+import org.apache.asn1.util.pools.PoolObject;
+
+
+/**
+ * An abstract POJO that extend PoolObject.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public abstract class AbstractPOJO extends PoolObject implements LdapPOJO
+{
+    //~ Instance fields ----------------------------------------------------------------------------
+
+    /** The object's current length. It is used while decoding PDUs */
+    private int currentLength;
+
+    /** The object's expected length. It is used while decoding PDUs */
+    private int expectedLength;
+
+    /** The encapsulating POJO */
+    protected AbstractPOJO father;
+
+    //~ Methods ------------------------------------------------------------------------------------
+
+    /**
+     * Get the current object length, which is the sum of all inner length
+     * already decoded.
+     * 
+     * @return The current object's length
+     */
+    public int getCurrentLength()
+    {
+
+        return currentLength;
+    }
+
+    /**
+     * Get the expected object length.
+     * 
+     * @return The expected object's length
+     */
+    public int getExpectedLength()
+    {
+
+        return expectedLength;
+    }
+
+    /**
+     * Add a length to the object
+     * 
+     * @param length The length to add.
+     * @throws DecoderException Thrown if the current length exceed the expected length
+     */
+    public void addLength( int length ) throws DecoderException
+    {
+        this.currentLength += length;
+        
+        if (currentLength > expectedLength)
+        {
+        	throw new DecoderException("Current Length is above expected Length");
+        }
+    }
+
+    /**
+     * DOCUMENT ME!
+     *
+     * @param expectedLength The expectedLength to set.
+     */
+    public void setExpectedLength( int expectedLength )
+    {
+        this.expectedLength = expectedLength;
+    }
+
+    /**
+     * DOCUMENT ME!
+     *
+     * @param currentLength The currentLength to set.
+     */
+    public void setCurrentLength( int currentLength )
+    {
+        this.currentLength = currentLength;
+    }
+}

Added: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindRequestPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindRequestPOJO.java?view=auto&rev=159169
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindRequestPOJO.java
(added)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindRequestPOJO.java
Sun Mar 27 10:42:07 2005
@@ -0,0 +1,130 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.asn1.ldap.pojo;
+
+/**
+ * A BindRequest POJO. It's a sub-class of AbstractPOJO, and it implements
+ * the LdapPOJO interface to be seen as a member of the LdapMessage
+ * CHOICE.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class BindRequestPOJO extends AbstractPOJO
+{
+    //~ Instance fields ----------------------------------------------------------------------------
+
+    /** The protocol Version to use. Should be 3 */
+    private int                version;
+
+    /** The name of the user requesting a bind */
+    private String             name;
+
+    /** The authentication used to bind the user */
+    private LdapPOJO authentication;
+
+    //~ Constructors -------------------------------------------------------------------------------
+
+    /**
+     * Creates a new BindRequestPOJO object.
+     */
+    public BindRequestPOJO()
+    {
+        super( );
+    }
+
+    //~ Methods ------------------------------------------------------------------------------------
+
+    /**
+     * Get the user authentication
+     *
+     * @return The user authentication
+     */
+    public LdapPOJO getAuthentication()
+    {
+
+        return authentication;
+    }
+
+    /**
+     * Set the user authentication
+     *
+     * @param authentication The user authentication
+     */
+    public void setAuthentication( LdapPOJO authentication )
+    {
+        this.authentication = authentication;
+    }
+
+    /**
+     * Get the user name
+     *
+     * @return The user name
+     */
+    public String getName()
+    {
+
+        return name;
+    }
+
+    /**
+     * Set the user name
+     *
+     * @param name The user name
+     */
+    public void setName( String name )
+    {
+        this.name = name;
+    }
+
+    /**
+     * Get the protocol version
+     *
+     * @return The protocol version
+     */
+    public int getVersion()
+    {
+
+        return version;
+    }
+
+    /**
+     * Set the protocol version
+     *
+     * @param version The protocol version
+     */
+    public void setVersion( int version )
+    {
+        this.version = version;
+    }
+
+    /**
+     * Free the BindRequestPOJO. we have to free the Authentication and
+     * to reset members to their initial values.
+     */
+    public void free()
+    {
+        name    = null;
+        version = 0;
+        
+        // free the authentication POJO
+        authentication.free();
+        authentication = null;
+        
+        // put back the object in the pool 
+        super.free();
+    }
+}

Added: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindResponsePOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindResponsePOJO.java?view=auto&rev=159169
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindResponsePOJO.java
(added)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindResponsePOJO.java
Sun Mar 27 10:42:07 2005
@@ -0,0 +1,39 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.asn1.ldap.pojo;
+
+/**
+ * TODO implement this class...
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class BindResponsePOJO extends LdapMessagePOJO
+{
+    //~ Instance fields ----------------------------------------------------------------------------
+
+    //~ Constructors -------------------------------------------------------------------------------
+
+    /**
+     * Creates a new BindResponsePOJO object.
+     */
+    public BindResponsePOJO()
+    {
+        super( );
+    }
+
+    //~ Methods ------------------------------------------------------------------------------------
+}

Added: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/ControlsPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/ControlsPOJO.java?view=auto&rev=159169
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/ControlsPOJO.java
(added)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/ControlsPOJO.java
Sun Mar 27 10:42:07 2005
@@ -0,0 +1,101 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.asn1.ldap.pojo;
+
+/**
+ * A POJO to store Controls.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class ControlsPOJO extends AbstractPOJO
+{
+    //~ Instance fields ----------------------------------------------------------------------------
+
+    /** The control type */
+    private String controlType;
+
+    /** The criticality (default value is false) */
+    private boolean criticality = false;
+
+    /** Optionnal control value */
+    private String controlValue;
+
+    //~ Methods ------------------------------------------------------------------------------------
+
+    /**
+     * Get the control type
+     *
+     * @return A string which represent the control type
+     */
+    public String getControlType()
+    {
+
+        return controlType;
+    }
+
+    /**
+     * Set the control type
+     *
+     * @param controlType A string to store
+     */
+    public void setControlType( String controlType )
+    {
+        this.controlType = controlType;
+    }
+
+    /**
+     * Get the control value
+     *
+     * @return The control value
+     */
+    public String getControlValue()
+    {
+
+        return controlValue;
+    }
+
+    /**
+     * Set the control value
+     *
+     * @param controlValue The control value to store
+     */
+    public void setControlValue( String controlValue )
+    {
+        this.controlValue = controlValue;
+    }
+
+    /**
+     * Get the criticality
+     *
+     * @return <code>true</code> if the criticality flag is true.
+     */
+    public boolean getCriticality()
+    {
+
+        return criticality;
+    }
+
+    /**
+     * Set the criticality
+     *
+     * @param criticality The criticality value
+     */
+    public void setCriticality( boolean criticality )
+    {
+        this.criticality = criticality;
+    }
+}

Added: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessagePOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessagePOJO.java?view=auto&rev=159169
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessagePOJO.java
(added)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessagePOJO.java
Sun Mar 27 10:42:07 2005
@@ -0,0 +1,142 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.asn1.ldap.pojo;
+
+/**
+ * The main POJO : every Ldap Message are encapsulated in it. It has a
+ * messageId and Controls.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class LdapMessagePOJO extends AbstractPOJO
+{
+    //~ Instance fields ----------------------------------------------------------------------------
+
+    /** The message ID */
+    private int messageId;
+
+    /** The request or response being carried by the message */
+    private LdapPOJO protocolOp;
+
+    /** The controls */
+    private ControlsPOJO[] controls;
+
+    //~ Constructors -------------------------------------------------------------------------------
+
+    /**
+     * Creates a new LdapMessagePOJO object.
+     */
+    public LdapMessagePOJO()
+    {
+        // We should not create this kind of object directly
+    }
+
+    //~ Methods ------------------------------------------------------------------------------------
+
+    /**
+     * Get the ControlPOJO at a specific index 
+     *
+     * @param i The index of the ControlPOJO to get
+     *
+     * @return The selected ControlPOJO
+     */
+    public ControlsPOJO getControls( int i )
+    {
+
+        return controls[i];
+    }
+
+    /**
+     * Set the ControlsPOJO array
+     *
+     * @param controls The ControlsPOJO array to store
+     */
+    public void setControls( ControlsPOJO[] controls )
+    {
+        this.controls = controls;
+    }
+
+    /**
+     * Get the message ID
+     *
+     * @return The message ID
+     */
+    public int getMessageId()
+    {
+
+        return messageId;
+    }
+
+    /**
+     * Set the message ID
+     *
+     * @param messageId The message ID
+     */
+    public void setMessageId( int messageId )
+    {
+        this.messageId = messageId;
+    }
+
+    /**
+     * DOCUMENT ME!
+     *
+     * @return Returns the protocolOP.
+     */
+    public LdapPOJO getProtocolOp()
+    {
+
+        return protocolOp;
+    }
+
+    /**
+     * DOCUMENT ME!
+     *
+     * @param protocolOp The protocolOp to set.
+     */
+    public void setProtocolOP( LdapPOJO protocolOp )
+    {
+        this.protocolOp = protocolOp;
+    }
+
+    /**
+     * Free the LdapMessagePOJO. we have to free the Authentication,
+     * the ProtocolOp, the Controls and to reset members to their 
+     * initial values.
+     */
+    public void free()
+    {
+        messageId = 0;
+        
+        // free the protocolOp POJO
+        protocolOp.free();
+        protocolOp = null;
+        
+        // free the controls POJO
+        
+        if (controls != null) 
+        {
+	        for (int i = 0; i < controls.length ; i++ )
+	        {
+	        	controls[i].free();
+	        	controls[i] = null;
+	        }
+        }
+        
+        // put back the object in the pool 
+        super.free();
+    }
+}

Added: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapPOJO.java?view=auto&rev=159169
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapPOJO.java
(added)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapPOJO.java
Sun Mar 27 10:42:07 2005
@@ -0,0 +1,32 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.asn1.ldap.pojo;
+
+/**
+ * LdapPojo interface
+ * 
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public interface LdapPOJO
+{
+    //~ Methods ------------------------------------------------------------------------------------
+
+    /** The method used to free the object */
+    public void free();
+
+}

Added: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SaslAuthenticationPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SaslAuthenticationPOJO.java?view=auto&rev=159169
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SaslAuthenticationPOJO.java
(added)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SaslAuthenticationPOJO.java
Sun Mar 27 10:42:07 2005
@@ -0,0 +1,93 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.asn1.ldap.pojo;
+
+
+/**
+ * A POJO which stores the SASL authentication of a BindRequest.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class SaslAuthenticationPOJO extends AbstractPOJO
+{
+    //~ Instance fields ----------------------------------------------------------------------------
+
+    /** Any mechanism defined in RFC 2222 :
+     * KERBEROS_V4,
+     * GSSAPI,
+     * SKEY,
+     * EXTERNAL
+     **/
+    private String mechanism;
+
+    /** optional credentials of the user */
+    private String credentials;
+
+    //~ Methods ------------------------------------------------------------------------------------
+
+    /**
+     * Get the credentials
+     *
+     * @return The credentials
+     */
+    public String getCredentials()
+    {
+
+        return credentials;
+    }
+
+    /**
+     * Set the credentials
+     *
+     * @param credentials The credentials
+     */
+    public void setCredentials( String credentials )
+    {
+        this.credentials = credentials;
+    }
+
+    /**
+     * Get the mechanism
+     *
+     * @return The mechanism
+     */
+    public String getMechanism()
+    {
+
+        return mechanism;
+    }
+
+    /**
+     * Set the mechanism
+     *
+     * @param mechanism The mechanism
+     */
+    public void setMechanism( String mechanism )
+    {
+        this.mechanism = mechanism;
+    }
+    
+    /**
+     * Free the POJO by calling the super method.
+     */
+    public void free() 
+    {
+    	mechanism = null;
+    	credentials = null;
+    	super.free();
+    }
+}

Added: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthenticationPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthenticationPOJO.java?view=auto&rev=159169
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthenticationPOJO.java
(added)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthenticationPOJO.java
Sun Mar 27 10:42:07 2005
@@ -0,0 +1,62 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.asn1.ldap.pojo;
+
+/**
+ * A POJO which stores the Simple authentication of a BindRequest.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class SimpleAuthenticationPOJO extends AbstractPOJO
+{
+    //~ Instance fields ----------------------------------------------------------------------------
+
+    /** The simple authentication password */
+    private String simple;
+
+    //~ Methods ------------------------------------------------------------------------------------
+
+    /**
+     * Get the simple password
+     *
+     * @return The password
+     */
+    public String getSimple()
+    {
+
+        return simple;
+    }
+
+    /**
+     * Set the simple password
+     *
+     * @param simple The simple password
+     */
+    public void setSimple( String simple )
+    {
+        this.simple = simple;
+    }
+
+    /**
+     * Free the POJO by calling the super method.
+     */
+    public void free() 
+    {
+    	simple = null;
+    	super.free();
+    }
+}



Mime
View raw message