From 42081daacf0cc13cdc1b60b626d1284f6646d055 Mon Sep 17 00:00:00 2001
From: Marek Goldmann <goldmann@fedoraproject.org>
Date: Wed, 29 Aug 2012 12:09:09 +0200
Subject: [PATCH] Implement a few methods in GSSUPContextSpi to make it work
 with JDK 7

---
 src/org/jacorb/security/sas/GSSUPContextSpi.java | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/src/org/jacorb/security/sas/GSSUPContextSpi.java b/src/org/jacorb/security/sas/GSSUPContextSpi.java
index ab070ae..1812680 100644
--- a/src/org/jacorb/security/sas/GSSUPContextSpi.java
+++ b/src/org/jacorb/security/sas/GSSUPContextSpi.java
@@ -33,6 +33,7 @@ import org.ietf.jgss.Oid;
 import sun.security.jgss.spi.GSSContextSpi;
 import sun.security.jgss.spi.GSSCredentialSpi;
 import sun.security.jgss.spi.GSSNameSpi;
+import com.sun.security.jgss.InquireType;
 
 /**
  * This is the GSS-API Sercurity Provider Interface (SPI) for the GSSUP Context
@@ -310,4 +311,19 @@ public final class GSSUPContextSpi
     {
         return false;
     }
+
+    public boolean getDelegPolicyState()
+    {
+        return false;
+    }
+
+    public void requestDelegPolicy(boolean state)
+    {
+        throw new RuntimeException("Method not implemented");
+    }
+
+    public Object inquireSecContext(InquireType type)
+    {
+        throw new RuntimeException("Method not implemented");
+    }
 }
