Author: elecharny
Date: Fri Apr 22 15:29:06 2005
New Revision: 164285
URL: http://svn.apache.org/viewcvs?rev=164285&view=rev
Log:
Added the SPNEGO Pojos
Added:
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenInitPOJO.java
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenTargPOJO.java
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoPOJO.java
Added:
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenInitPOJO.java
URL:
http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenInitPOJO.java?rev=164285&view=auto
==============================================================================
---
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenInitPOJO.java
(added)
+++
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenInitPOJO.java
Fri Apr 22 15:29:06 2005
@@ -0,0 +1,287 @@
+/*
+ * 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.spnego.pojo;
+
+import org.apache.asn1.AbstractPOJO;
+import org.apache.asn1.primitives.OID;
+import org.apache.asn1.primitives.OctetString;
+
+
+/**
+ * The main POJO : every Ldap Message are encapsulated in it. It has a
+ * messageId and Controls.
+ *
+ * @author <a href="mailto:[email protected]">Apache Directory
Project</a>
+ */
+public class SpnegoNegTokenInitPOJO extends AbstractPOJO
+{
+ //~ Instance fields
----------------------------------------------------------------------------
+
+ /** The mechTypes */
+ private OID[] mechTypeList;
+
+ /** The delegate flag */
+ private boolean delegFlag;
+
+ /** The mutual flag */
+ private boolean mutualFlag;
+
+ /** The replay flag */
+ private boolean replayFlag;
+
+ /** The sequence flag */
+ private boolean sequenceFlag;
+
+ /** The anonymous flag */
+ private boolean anonFlag;
+
+ /** The configure flag */
+ private boolean confFlag;
+
+ /** The integrity flag */
+ private boolean integFlag;
+
+ /** The mechanism tokens */
+ private OctetString mechToken;
+
+ /** The mechanism list MIC */
+ private OctetString mechListMIC;
+
+ //~ Constructors
-------------------------------------------------------------------------------
+
+ /**
+ * Creates a new SpnegoPOJO object.
+ */
+ public SpnegoNegTokenInitPOJO()
+ {
+ // We should not create this kind of object directly
+ }
+
+ //~ Methods
------------------------------------------------------------------------------------
+
+ /**
+ * Free the SpnegoPOJO. we have to free the Authentication,
+ * the ProtocolOp, the Controls and to reset members to their
+ * initial values.
+ */
+ public void free()
+ {
+
+ // put back the object in the pool
+ super.free();
+ }
+
+ /**
+ * Returns the anonFlag
+ *
+ * @return Returns the anonFlag.
+ */
+ public boolean isAnonFlag()
+ {
+ return anonFlag;
+ }
+
+ /**
+ * Set the anonFlag
+ *
+ * @param anonFlag The anonFlag to set.
+ */
+ public void setAnonFlag( boolean anonFlag )
+ {
+ this.anonFlag = anonFlag;
+ }
+
+ /**
+ * Returns the confFlag
+ *
+ * @return Returns the confFlag.
+ */
+ public boolean isConfFlag()
+ {
+ return confFlag;
+ }
+
+ /**
+ * Set the confFlag
+ *
+ * @param confFlag The confFlag to set.
+ */
+ public void setConfFlag( boolean confFlag )
+ {
+ this.confFlag = confFlag;
+ }
+
+ /**
+ * Returns the delegFlag
+ *
+ * @return Returns the delegFlag.
+ */
+ public boolean isDelegFlag()
+ {
+ return delegFlag;
+ }
+
+ /**
+ * Set the delegFlag
+ *
+ * @param delegFlag The delegFlag to set.
+ */
+ public void setDelegFlag( boolean delegFlag )
+ {
+ this.delegFlag = delegFlag;
+ }
+
+ /**
+ * Returns the integFlag
+ *
+ * @return Returns the integFlag.
+ */
+ public boolean isIntegFlag()
+ {
+ return integFlag;
+ }
+
+ /**
+ * Set the integFlag
+ *
+ * @param integFlag The integFlag to set.
+ */
+ public void setIntegFlag( boolean integFlag )
+ {
+ this.integFlag = integFlag;
+ }
+
+ /**
+ * Returns the mechListMIC
+ *
+ * @return Returns the mechListMIC.
+ */
+ public OctetString getMechListMIC()
+ {
+ return mechListMIC;
+ }
+
+ /**
+ * Set the mechListMIC
+ *
+ * @param mechListMIC The mechListMIC to set.
+ */
+ public void setMechListMIC( OctetString mechListMIC )
+ {
+ this.mechListMIC = mechListMIC;
+ }
+
+ /**
+ * Returns the mechToken
+ *
+ * @return Returns the mechToken.
+ */
+ public OctetString getMechToken()
+ {
+ return mechToken;
+ }
+
+ /**
+ * Set the mechToken
+ *
+ * @param mechToken The mechToken to set.
+ */
+ public void setMechToken( OctetString mechToken )
+ {
+ this.mechToken = mechToken;
+ }
+
+ /**
+ * Returns the mechTypeList
+ *
+ * @return Returns the mechTypeList.
+ */
+ public OID[] getMechTypeList()
+ {
+ return mechTypeList;
+ }
+
+ /**
+ * Set the mechTypeList
+ *
+ * @param mechTypeList The mechTypeList to set.
+ */
+ public void setMechTypeList( OID[] mechTypeList )
+ {
+ this.mechTypeList = mechTypeList;
+ }
+
+ /**
+ * Returns the mutualFlag
+ *
+ * @return Returns the mutualFlag.
+ */
+ public boolean isMutualFlag()
+ {
+ return mutualFlag;
+ }
+
+ /**
+ * Set the mutualFlag
+ *
+ * @param mutualFlag The mutualFlag to set.
+ */
+ public void setMutualFlag( boolean mutualFlag )
+ {
+ this.mutualFlag = mutualFlag;
+ }
+
+ /**
+ * Returns the replayFlag
+ *
+ * @return Returns the replayFlag.
+ */
+ public boolean isReplayFlag()
+ {
+ return replayFlag;
+ }
+
+ /**
+ * Set the replayFlag
+ *
+ * @param replayFlag The replayFlag to set.
+ */
+ public void setReplayFlag( boolean replayFlag )
+ {
+ this.replayFlag = replayFlag;
+ }
+
+ /**
+ * Returns the sequenceFlag.
+ *
+ * @return Returns the sequenceFlag.
+ */
+ public boolean isSequenceFlag()
+ {
+ return sequenceFlag;
+ }
+
+ /**
+ * Set the sequenceFlag
+ *
+ * @param sequenceFlag The sequenceFlag to set.
+ */
+ public void setSequenceFlag( boolean sequenceFlag )
+ {
+ this.sequenceFlag = sequenceFlag;
+ }
+}
Added:
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenTargPOJO.java
URL:
http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenTargPOJO.java?rev=164285&view=auto
==============================================================================
---
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenTargPOJO.java
(added)
+++
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenTargPOJO.java
Fri Apr 22 15:29:06 2005
@@ -0,0 +1,149 @@
+/*
+ * 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.spnego.pojo;
+
+import org.apache.asn1.AbstractPOJO;
+import org.apache.asn1.primitives.OID;
+import org.apache.asn1.primitives.OctetString;
+
+
+/**
+ * The main POJO : every Ldap Message are encapsulated in it. It has a
+ * messageId and Controls.
+ *
+ * @author <a href="mailto:[email protected]">Apache Directory
Project</a>
+ */
+public class SpnegoNegTokenTargPOJO extends AbstractPOJO
+{
+ //~ Instance fields
----------------------------------------------------------------------------
+
+ /** The controls */
+ private int negResult;
+
+ /** Supported mechanism */
+ private OID supportedMech;
+
+ /** The Response */
+ private OctetString responseToken;
+
+ /** The mechanism List */
+ private OctetString mechListMIC;
+
+ //~ Constructors
-------------------------------------------------------------------------------
+
+ /**
+ * Creates a new SpnegoPOJO object.
+ */
+ public SpnegoNegTokenTargPOJO()
+ {
+ // We should not create this kind of object directly
+ }
+
+ //~ Methods
------------------------------------------------------------------------------------
+
+ /**
+ * Free the SpnegoPOJO. we have to free the Authentication,
+ * the ProtocolOp, the Controls and to reset members to their
+ * initial values.
+ */
+ public void free()
+ {
+
+ // put back the object in the pool
+ super.free();
+ }
+
+ /**
+ * Returns the mechListMIC
+ *
+ * @return Returns the mechListMIC.
+ */
+ public OctetString getMechListMIC()
+ {
+ return mechListMIC;
+ }
+
+ /**
+ * Set the mechListMIC
+ *
+ * @param mechListMIC The mechListMIC to set.
+ */
+ public void setMechListMIC( OctetString mechListMIC )
+ {
+ this.mechListMIC = mechListMIC;
+ }
+
+ /**
+ * Returns the negResult
+ *
+ * @return Returns the negResult.
+ */
+ public int getNegResult()
+ {
+ return negResult;
+ }
+
+ /**
+ * Set the negResult
+ *
+ * @param negResult The negResult to set.
+ */
+ public void setNegResult( int negResult )
+ {
+ this.negResult = negResult;
+ }
+
+ /**
+ * Returns the responseToken
+ *
+ * @return Returns the responseToken.
+ */
+ public OctetString getResponseToken()
+ {
+ return responseToken;
+ }
+
+ /**
+ * Set the responseToken
+ *
+ * @param responseToken The responseToken to set.
+ */
+ public void setResponseToken( OctetString responseToken )
+ {
+ this.responseToken = responseToken;
+ }
+
+ /**
+ * Returns the supportedMech
+ *
+ * @return Returns the supportedMech.
+ */
+ public OID getSupportedMech()
+ {
+ return supportedMech;
+ }
+
+ /**
+ * Set the supportedMech
+ *
+ * @param supportedMech The supportedMech to set.
+ */
+ public void setSupportedMech( OID supportedMech )
+ {
+ this.supportedMech = supportedMech;
+ }
+}
Added:
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoPOJO.java
URL:
http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoPOJO.java?rev=164285&view=auto
==============================================================================
---
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoPOJO.java
(added)
+++
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoPOJO.java
Fri Apr 22 15:29:06 2005
@@ -0,0 +1,56 @@
+/*
+ * 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.spnego.pojo;
+
+import org.apache.asn1.AbstractPOJO;
+
+/**
+ * The main POJO : every Ldap Message are encapsulated in it. It has a
+ * messageId and Controls.
+ *
+ * @author <a href="mailto:[email protected]">Apache Directory
Project</a>
+ */
+public class SpnegoPOJO extends AbstractPOJO
+{
+ //~ Instance fields
----------------------------------------------------------------------------
+
+ /** The controls */
+
+
+ //~ Constructors
-------------------------------------------------------------------------------
+
+ /**
+ * Creates a new SpnegoPOJO object.
+ */
+ public SpnegoPOJO()
+ {
+ // We should not create this kind of object directly
+ }
+
+ //~ Methods
------------------------------------------------------------------------------------
+
+ /**
+ * Free the SpnegoPOJO. we have to free the Authentication,
+ * the ProtocolOp, the Controls and to reset members to their
+ * initial values.
+ */
+ public void free()
+ {
+ // put back the object in the pool
+ super.free();
+ }
+}