Hi ,
HostOrSelfAuthorization does not have the .getInstance() so i used the
normal constructor as
HostOrSelfAuthorization hs = new HostOrSelfAuthorization();
((Stub) besFactory)._setProperty(Constants.GSI_SEC_CONV,
Constants.SIGNATURE);
((Stub) besFactory)._setProperty(GSIConstants.GSI_MODE,
GSIConstants.GSI_MODE_FULL_DELEG);
((Stub) besFactory)._setProperty(Constants.AUTHORIZATION,
hs); // see here
but i am getting this error
Failure unspecified at GSS-API level (Mechanism level: [JGLOBUS-59]
Cannot request delegation without authorization (target name null))
any suggestion ?
Zeeshan
Charles Bacon wrote:
>> Questions : So, either I should not have the service run as the
>> caller (If Yes than how Delegation will works ??) , or have the
>> client expect its own identity after it has delegated. (How to switch
>> back ?). regards Zeeshan
>
> The client can call another setProperty call to switch over to Self
> authorization, the exact same way your quoted code goes to host
> authorization in the first place.
>
> Or, as we also discussed, you can use the HostOrSelfAuthorization the
> whole time.
>
>
> Charles