public static Credentials acquireServiceCreds(String service,Credentials ccreds) throws KrbException, IOException {
  return CredentialsUtil.acquireServiceCreds(service,ccreds);
}

public static Credentials acquireServiceCreds ( String service , Credentials ccreds ) throws KrbException , IOException { return CredentialsUtil . acquireServiceCreds ( service , ccreds ) ; }
acquires credentials for a specified service using initial credential . when the service has a different realm from the initial credential , we do cross - realm authentication - first , we use the current credential to get a cross - realm credential from the local kdc , then use that cross - realm credential to request service credential from the foreigh kdc .
